Fix production base url (#1429)

This commit is contained in:
John Stringer
2025-02-10 04:08:56 +00:00
committed by GitHub
parent 7f8f9ff1a3
commit 6946bf713a
3 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import { ReadonlyURLSearchParams } from 'next/navigation';
export const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
export const baseUrl = process.env.VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
: 'http://localhost:3000';
export const createUrl = (