include constants changes

This commit is contained in:
Ra
2025-09-02 14:58:39 -07:00
parent a3ef608825
commit 27dab3ca9a
2 changed files with 4 additions and 5 deletions

3
.gitignore vendored
View File

@@ -66,4 +66,5 @@ dist-ssr
/EMPLOYEE_FORMS_FIGMA_README.md /EMPLOYEE_FORMS_FIGMA_README.md
/TODOS.md /TODOS.md
/SECURITY_MIGRATION.md /SECURITY_MIGRATION.md
/employee_report_schema.json /employee_report_schema.json
*.env*

View File

@@ -8,8 +8,8 @@ const isLocalhost = typeof window !== 'undefined' &&
(window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'); (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1');
// Check if we should force production API (useful for testing invite links locally) // Check if we should force production API (useful for testing invite links locally)
const forceProductionAPI = typeof window !== 'undefined' && // const forceProductionAPI = typeof window !== 'undefined' &&
window.location.search.includes('use-production-api=true'); // window.location.search.includes('use-production-api=true');
// Use Firebase Functions emulator in development, production functions in production // Use Firebase Functions emulator in development, production functions in production
// export const API_URL = (isLocalhost && !forceProductionAPI) // export const API_URL = (isLocalhost && !forceProductionAPI)
@@ -25,8 +25,6 @@ if (import.meta.env.DEV) {
console.log('🌐 Frontend URL Configuration:'); console.log('🌐 Frontend URL Configuration:');
console.log(` SITE_URL: ${SITE_URL}`); console.log(` SITE_URL: ${SITE_URL}`);
console.log(` API_URL: ${API_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 // DEPRECATED: These are legacy sample data that should not be used in production