Skip to content

Commit 4397b51

Browse files
committed
change e2e to use custom config
1 parent fcea5ad commit 4397b51

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/overrides/d1-tag-next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"build:worker": "pnpm opennextjs-cloudflare build",
11-
"preview:worker": "pnpm opennextjs-cloudflare preview",
10+
"build:worker": "pnpm opennextjs-cloudflare build --skipWranglerConfigCheck",
11+
"preview:worker": "pnpm opennextjs-cloudflare preview --config wrangler.e2e.jsonc",
1212
"preview": "pnpm build:worker && pnpm preview:worker",
1313
"e2e": "playwright test -c e2e/playwright.config.ts"
1414
},

examples/overrides/d1-tag-next/wrangler.jsonc renamed to examples/overrides/d1-tag-next/wrangler.e2e.jsonc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
77
"assets": {
88
"directory": ".open-next/assets",
9-
"binding": "ASSETS"
9+
"binding": "ASSETS",
1010
},
1111
"vars": {
12-
"APP_VERSION": "1.2.345"
12+
"APP_VERSION": "1.2.345",
1313
},
1414
"kv_namespaces": [
1515
{
1616
"binding": "NEXT_INC_CACHE_KV",
17-
"id": "<BINDING_ID>"
18-
}
17+
"id": "<BINDING_ID>",
18+
},
1919
],
2020
"d1_databases": [
2121
{
2222
"binding": "NEXT_TAG_CACHE_D1",
2323
"database_id": "NEXT_TAG_CACHE_D1",
24-
"database_name": "NEXT_TAG_CACHE_D1"
25-
}
26-
]
24+
"database_name": "NEXT_TAG_CACHE_D1",
25+
},
26+
],
2727
}

0 commit comments

Comments
 (0)