mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
https://localhost had cert issues. the user can override with a https SUPABASE_PUBLIC_URL if required and we will pick that up
6 lines
278 B
TypeScript
6 lines
278 B
TypeScript
const PUBLIC_URL = new URL(process.env.SUPABASE_PUBLIC_URL || 'http://localhost:8000')
|
|
|
|
export const PROJECT_REST_URL = `${PUBLIC_URL.origin}/rest/v1/`
|
|
export const PROJECT_ENDPOINT = PUBLIC_URL.host
|
|
export const PROJECT_ENDPOINT_PROTOCOL = PUBLIC_URL.protocol.replace(':', '')
|