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
|
/EMPLOYEE_FORMS_FIGMA_README.md
|
||||||
/TODOS.md
|
/TODOS.md
|
||||||
/SECURITY_MIGRATION.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');
|
(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
|
||||||
|
|||||||
Reference in New Issue
Block a user