feat: set NEXTAUTH_URL based on DEPLOY_PRIME_URL on Netlify
This commit is contained in:
12
netlify.toml
12
netlify.toml
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user