mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
Docs preview sites are getting indexed in Google. Last time we "fixed" this problem, we corrected the "X-Robots" header, but we forgot to change the robots meta tag in the HTML, so we didn't actually solve the problem. -_-
13 lines
703 B
TypeScript
13 lines
703 B
TypeScript
export const API_URL = (
|
|
process.env.NODE_ENV === 'development'
|
|
? process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080'
|
|
: process.env.NEXT_PUBLIC_API_URL
|
|
)?.replace(/\/platform$/, '')
|
|
export const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || '/docs'
|
|
export const IS_DEV = process.env.NODE_ENV === 'development'
|
|
export const IS_PLATFORM = process.env.NEXT_PUBLIC_IS_PLATFORM === 'true'
|
|
export const IS_PREVIEW = process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
|
|
export const IS_PRODUCTION = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
|
|
export const LOCAL_SUPABASE = process.env.NEXT_PUBLIC_LOCAL_SUPABASE === 'true'
|
|
export const MISC_URL = process.env.NEXT_PUBLIC_MISC_URL ?? ''
|