chore(debug): next-auth url

This commit is contained in:
Michael Zetterberg
2024-04-28 08:00:40 +02:00
parent 204f0f45ce
commit f9fbeadbb7
2 changed files with 21 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ jiti("./env/client")
// Otherwise we fallback to DEPLOY_PRIME_URL from Netlify built-in variables.
// Locally we set DEPLOY_PRIME_URL
const ENV_URL = process.env.SCANDIC_ENV_URL || process.env.DEPLOY_PRIME_URL
console.log({ config_SCANDIC_ENV_URL: process.env.SCANDIC_ENV_URL })
console.log({ config_DEPLOY_PRIME_URL: process.env.DEPLOY_PRIME_URL })
console.log({ ENV_URL })
// We set NEXTAUTH_URL here because next.config.js is included in Netlify
// functions when bundling. Otherwise we are unable to login on preview