short-url/lib/env.ts

7 lines
175 B
TypeScript
Raw Normal View History

2024-11-29 20:46:12 +08:00
import getConfig from 'next/config'
const { publicRuntimeConfig } = getConfig()
export const BASE_URL = publicRuntimeConfig.NEXT_PUBLIC_BASE_URL || 'http://localhost:3000'