Skip to content

Commit f4cd6fc

Browse files
committed
Update NextJS 13+ configuration.
1 parent e846886 commit f4cd6fc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/nextjs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
"test:all": "run-s test:unit test:integration test:build",
6767
"test:build": "yarn ts-node test/buildProcess/runTest.ts",
6868
"test:unit": "jest",
69-
"test:integration": "test/run-integration-tests.sh && yarn test:types",
70-
"test:integration:ci": "run-s test:integration:clean test:integration:prepare test:integration:client:ci test:integration:server",
71-
"test:integration:prepare": "(cd test/integration && yarn && yarn build && yarn start)",
69+
"test:integration": "./test/run-integration-tests.sh && yarn test:types",
70+
"test:integration:ci": "run-s test:integration:clean test:integration:client:ci test:integration:server",
71+
"test:integration:prepare": "(cd test/integration && yarn build && yarn start)",
7272
"test:integration:clean": "(cd test/integration && rimraf .cache node_modules build)",
7373
"test:integration:client": "yarn playwright install-deps && yarn playwright test test/integration/test/client/",
7474
"test:integration:client:ci": "yarn test:integration:client --browser='all' --reporter='line'",

packages/nextjs/test/run-integration-tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ for NEXTJS_VERSION in 10 11 12 13; do
106106
# next 10 defaults to webpack 4 and next 11 defaults to webpack 5, but each can use either based on settings
107107
if [ "$NEXTJS_VERSION" -eq "10" ]; then
108108
sed "s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5/g" <next10.config.template >next.config.js
109-
else
109+
elif [ "$NEXTJS_VERSION" -eq "11" ]; then
110110
sed "s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5/g" <next11.config.template >next.config.js
111+
else
112+
mv next.config.js.bak next.config.js || true
111113
fi
112114

113115
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Building..."

0 commit comments

Comments
 (0)