mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Put API prefix in server only file to access process.env
This commit is contained in:
3
web-app/src/lib/server/utils.ts
Normal file
3
web-app/src/lib/server/utils.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { dev } from "$app/environment";
|
||||
|
||||
export const API_BASE_PREFIX = dev ? "http://localhost:3000" : `${process.env.ORIGIN}/api`;
|
||||
Reference in New Issue
Block a user