cors apifix

This commit is contained in:
2026-05-20 18:10:21 +05:30
parent 302c7c0e8e
commit a0b7803148

View File

@@ -20,7 +20,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
const PORT = Number(process.env.PORT) || 3000 const PORT = Number(process.env.PORT) || 3000
const SECRET = (process.env.HASURA_ADMIN_SECRET || '').trim() const SECRET = (process.env.HASURA_ADMIN_SECRET || '').trim()
const TARGET_LEGACY = 'https://api.workolik.com' const TARGET_LEGACY = 'https://api.workolik.com'
const TARGET_REST = 'https://fiesta.nearle.app' const TARGET_REST = 'https://jupiter.nearle.app'
if (!SECRET) { if (!SECRET) {
console.warn('[xpress-docs] WARNING: HASURA_ADMIN_SECRET is not set. Proxied API calls will be sent without auth.') console.warn('[xpress-docs] WARNING: HASURA_ADMIN_SECRET is not set. Proxied API calls will be sent without auth.')