diff --git a/.gitignore b/.gitignore index 2def1a2..1063258 100644 --- a/.gitignore +++ b/.gitignore @@ -66,4 +66,5 @@ dist-ssr /EMPLOYEE_FORMS_FIGMA_README.md /TODOS.md /SECURITY_MIGRATION.md -/employee_report_schema.json \ No newline at end of file +/employee_report_schema.json +*.env* \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts index 9f98231..27972c0 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -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