tldraw/apps/dotcom/src/utils/config.ts
Steve Ruiz d7002057d7
unbrivate, dot com in (#2475)
This PR moves the tldraw.com app into the public repo.

### Change Type

- [x] `internal` — Any other changes that don't affect the published
package[^2]

---------

Co-authored-by: Dan Groshev <git@dgroshev.com>
Co-authored-by: alex <alex@dytry.ch>
2024-01-16 14:38:05 +00:00

17 lines
603 B
TypeScript

export const BOOKMARK_ENDPOINT = 'https://bookmark-extractor.tldraw.com/api/bookmark'
// some boilerplate to get the URL of the server to upload/fetch assets
if (!process.env.ASSET_UPLOAD) {
throw new Error('Missing ASSET_UPLOAD env var')
}
export const ASSET_UPLOADER_URL: string = process.env.ASSET_UPLOAD
export const CONTROL_SERVER: string =
process.env.NEXT_PUBLIC_CONTROL_SERVER || 'http://localhost:3001'
if (!process.env.MULTIPLAYER_SERVER) {
throw new Error('Missing MULTIPLAYER_SERVER env var')
}
export const MULTIPLAYER_SERVER = process.env.MULTIPLAYER_SERVER.replace(/^http/, 'ws')