more env stuff
All checks were successful
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m18s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 7s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 41s

This commit is contained in:
yohlo
2026-02-09 12:07:45 -06:00
parent 243fb094e1
commit 70a032db20
4 changed files with 48 additions and 8 deletions

View File

@@ -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',
}