Skip to content

Commit 48615c1

Browse files
committed
feat(preview): add default compatibility date
1 parent 128cdec commit 48615c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/wrangler.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export function generateWrangler(hub, nitro) {
2525

2626
if (hub.bindings?.compatibilityDate) {
2727
wrangler['compatibility_date'] = hub.bindings.compatibilityDate
28+
} else {
29+
wrangler['compatibility_date'] = new Date().toISOString().split('T')[0]
2830
}
2931

3032
if (hub.ai) {

0 commit comments

Comments
 (0)