fix(WEB-132): absolute seamless login return urls

This commit is contained in:
Michael Zetterberg
2024-04-25 08:54:05 +02:00
parent 1ec86f43ff
commit bcbc829e2e
5 changed files with 60 additions and 23 deletions

View File

@@ -23,6 +23,10 @@ jiti("./env/client")
/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
URL:
process.env.CONTEXT === "production"
? process.env.URL
: process.env.DEPLOY_PRIME_URL,
NEXTAUTH_URL:
(process.env.CONTEXT === "production"
? process.env.URL