Use production url for baseUrl

This commit is contained in:
John Stringer 2025-02-09 22:00:15 +00:00
parent 7f8f9ff1a3
commit fa78b0693c

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 = (