include constants changes
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -66,4 +66,5 @@ dist-ssr
|
||||
/EMPLOYEE_FORMS_FIGMA_README.md
|
||||
/TODOS.md
|
||||
/SECURITY_MIGRATION.md
|
||||
/employee_report_schema.json
|
||||
/employee_report_schema.json
|
||||
*.env*
|
||||
@@ -8,8 +8,8 @@ const isLocalhost = typeof window !== 'undefined' &&
|
||||
(window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1');
|
||||
|
||||
// Check if we should force production API (useful for testing invite links locally)
|
||||
const forceProductionAPI = typeof window !== 'undefined' &&
|
||||
window.location.search.includes('use-production-api=true');
|
||||
// const forceProductionAPI = typeof window !== 'undefined' &&
|
||||
// window.location.search.includes('use-production-api=true');
|
||||
|
||||
// Use Firebase Functions emulator in development, production functions in production
|
||||
// export const API_URL = (isLocalhost && !forceProductionAPI)
|
||||
@@ -25,8 +25,6 @@ if (import.meta.env.DEV) {
|
||||
console.log('🌐 Frontend URL Configuration:');
|
||||
console.log(` SITE_URL: ${SITE_URL}`);
|
||||
console.log(` API_URL: ${API_URL}`);
|
||||
console.log(` isLocalhost: ${isLocalhost}`);
|
||||
console.log(` forceProductionAPI: ${forceProductionAPI}`);
|
||||
}
|
||||
|
||||
// DEPRECATED: These are legacy sample data that should not be used in production
|
||||
|
||||
Reference in New Issue
Block a user