feat: set NEXTAUTH_URL based on DEPLOY_PRIME_URL on Netlify

This commit is contained in:
Michael Zetterberg
2024-04-22 17:50:54 +02:00
parent 285f8bdcfa
commit e2252c01cf
5 changed files with 24 additions and 7 deletions

View File

@@ -2,14 +2,20 @@
command = "npm run build"
publish = ".next"
[context.branch-deploy]
command = "npm run lint && npm run build"
[context.deploy-preview]
command = "npm run lint && npm run build"
[[plugins]]
package = "netlify-plugin-cypress"
[plugins.inputs]
configFile = "cypress.config.ts"
[plugins.inputs.postBuild]
enable = true
start = "npm start"
wait-on = "http://127.0.0.1:3000/en/test"
enable = true
start = "npm start"
wait-on = "http://127.0.0.1:3000/en/test"
wait-on-timeout = "30" # seconds
[build.environment]