e5eab8b38d
Updated to latest app-playground code
7 lines
184 B
TypeScript
7 lines
184 B
TypeScript
import { cache } from 'react'
|
|
|
|
export const getBaseUrl = cache(() =>
|
|
process.env.VERCEL_URL
|
|
? `https://app-dir.vercel.app`
|
|
: `http://localhost:${process.env.PORT ?? 3000}`
|
|
)
|