more env stuff
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
const getOrigin = (): string => {
|
||||
if (typeof window !== 'undefined') {
|
||||
return window.location.origin;
|
||||
}
|
||||
return process.env.VITE_API_DOMAIN || 'http://localhost:3000';
|
||||
};
|
||||
|
||||
export const appInfo = {
|
||||
appName: 'FLXN',
|
||||
apiDomain: process.env.VITE_API_DOMAIN || 'http://localhost:3000',
|
||||
websiteDomain: process.env.VITE_WEBSITE_DOMAIN || 'http://localhost:3000',
|
||||
apiDomain: getOrigin(),
|
||||
websiteDomain: getOrigin(),
|
||||
apiBasePath: '/api/auth',
|
||||
websiteBasePath: '/auth',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user