Files
flxn-app/src/lib/supertokens/config.ts
yohlo 70a032db20
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
more env stuff
2026-02-09 12:07:45 -06:00

15 lines
339 B
TypeScript

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: getOrigin(),
websiteDomain: getOrigin(),
apiBasePath: '/api/auth',
websiteBasePath: '/auth',
}