The domains are randomly generated, but I can over...
# support-questions-legacy
g
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"
3 Views