cors apifix
This commit is contained in:
@@ -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.')
|
||||||
|
|||||||
Reference in New Issue
Block a user