https://supertokens.com/ logo
#support-questions
Title
# support-questions
g

gusfune

05/14/2021, 9:23 AM
The domains are randomly generated, but I can overcome this with:
Copy code
const websiteDomain =
  process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
    ? "https://mydomain.io"
    : process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"
    ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL as string}`
    : "http://localhost:3000"
2 Views