mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
origin fallback
This commit is contained in:
parent
c8289158a8
commit
a81bb632a3
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
export const BACKEND_URL =
|
||||
process.env.NEXT_PUBLIC_BACKEND_URL === "http://localhost:3001"
|
||||
? "http://localhost:3001"
|
||||
: `${process.env.NEXT_PUBLIC_BACKEND_URL}/api`;
|
||||
: `${
|
||||
process.env.NEXT_PUBLIC_BACKEND_URL || globalThis.location.origin
|
||||
}/api`;
|
||||
export const IS_CLOUD = process.env.NEXT_PUBLIC_CLOUD === "true";
|
||||
export const IS_DEMO = process.env.NEXT_PUBLIC_DEMO === "true";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue