Skip to content

Commit 0758f29

Browse files
committed
test: set NEXT_PRIVATE_TEST_MODE when running Next.js repo tests
1 parent 6e439b0 commit 0758f29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/netlify-deploy.ts

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export class NextDeployInstance extends NextInstance {
9090
command = "npm run build"
9191
publish = ".next"
9292
93+
[build.environment]
94+
# this allows to use "CanaryOnly" features with next@latest
95+
NEXT_PRIVATE_TEST_MODE = "e2e"
96+
9397
[[plugins]]
9498
package = "${runtimePackageName}"
9599
`

0 commit comments

Comments
 (0)