mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
nothing
This commit is contained in:
3
src/data/constants.ts
Normal file
3
src/data/constants.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
const debugAPI = `${process.env.VITE_debugAPI}/api/`
|
||||
const releseAPI = `${document.location.protocol}//api.vtsuru.live/api/`;
|
||||
export const BASE_API = process.env.NODE_ENV === 'development' ? debugAPI : releseAPI;
|
||||
Reference in New Issue
Block a user