Skip to content

Commit 447aa32

Browse files
committed
put current nextjs version into the env
1 parent 1bf9883 commit 447aa32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ mv next.config.js next.config.js.bak
3232

3333
for NEXTJS_VERSION in 10 11 12; do
3434

35+
# export this to the env so that we can behave differently depending on which version of next we're testing, without
36+
# having to pass this value from function to function to function to the one spot, deep in some callstack, where we
37+
# actually need it
38+
export NEXTJS_VERSION=$NEXTJS_VERSION
39+
3540
# Next 10 requires at least Node v10
3641
if [ "$NODE_MAJOR" -lt "10" ]; then
3742
echo "[nextjs] Next.js is not compatible with versions of Node older than v10. Current version $NODE_VERSION"

0 commit comments

Comments
 (0)