@@ -32,8 +32,8 @@ echo "Running integration tests on Node $NODE_VERSION"
32
32
mv next.config.js next.config.js.bak
33
33
34
34
for NEXTJS_VERSION in 10 11 12 13; do
35
- for USE_APPDIR in true false ; do
36
- if ([ " $NEXTJS_VERSION " -lt " 13" ] || [ " $NODE_MAJOR " -lt " 16" ]) && [ " $USE_APPDIR " == true ]; then
35
+ for USE_APPDIR in " true" " false" ; do
36
+ if ([ " $NEXTJS_VERSION " -lt " 13" ] || [ " $NODE_MAJOR " -lt " 16" ]) && [ " $USE_APPDIR " == " true" ]; then
37
37
# App dir doesn not work on Next.js < 13 or Node.js < 16
38
38
continue
39
39
fi
@@ -127,7 +127,7 @@ for NEXTJS_VERSION in 10 11 12 13; do
127
127
elif [ " $NEXTJS_VERSION " -eq " 12" ]; then
128
128
sed " s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5 /g" < next12.config.template > next.config.js
129
129
elif [ " $NEXTJS_VERSION " -eq " 13" ]; then
130
- if [ " $USE_APPDIR " == true ]; then
130
+ if [ " $USE_APPDIR " == " true" ]; then
131
131
sed " s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5 /g" < next13.appdir.config.template > next.config.js
132
132
else
133
133
sed " s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5 /g" < next13.config.template > next.config.js
@@ -147,7 +147,7 @@ for NEXTJS_VERSION in 10 11 12 13; do
147
147
# we keep this updated as we run the tests, so that if it's ever non-zero, we can bail
148
148
EXIT_CODE=0
149
149
150
- if [ " $USE_APPDIR " == true ]; then
150
+ if [ " $USE_APPDIR " == " true" ]; then
151
151
echo " Skipping server tests for appdir"
152
152
else
153
153
echo " [nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION ] Running server tests with options: $args "
0 commit comments