d7002057d7
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>
17 lines
603 B
TypeScript
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')
|