mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-28 19:41:25 -04:00
Make local DEV work out of the box
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {DOMAIN, LOCAL_DEV, LOCAL_WEB_URL} from 'common/envs/constants'
|
||||
import {DOMAIN} from 'common/envs/constants'
|
||||
|
||||
// opengraph functions that run in static props or client-side, but not in the edge (in image creation)
|
||||
|
||||
@@ -10,5 +10,5 @@ export function buildOgUrl<P extends Record<string, string>>(
|
||||
const generateUrlParams = (params: P) =>
|
||||
new URLSearchParams(params).toString()
|
||||
|
||||
return `https://${domain ?? LOCAL_DEV ? LOCAL_WEB_URL : DOMAIN}/api/og/${endpoint}?` + generateUrlParams(props)
|
||||
return `https://${domain ?? DOMAIN}/api/og/${endpoint}?` + generateUrlParams(props)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user