From fbe2029ee06feceb50581e3085ad536633554030 Mon Sep 17 00:00:00 2001 From: FrankApiyo Date: Wed, 11 Dec 2024 10:11:15 +0300 Subject: [PATCH] Change CORS_ORIGIN -> CORS_ORIGINS --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ebabe4a..8873864 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,7 @@ async function build() { }) // CORS - fastify.register(require('@fastify/cors'), { origin: typeof process.env.CORS_ORIGIN === 'string' ? process.env.CORS_ORIGINS.split(",") : process.env.CORS_ORIGINS }) + fastify.register(require('@fastify/cors'), { origin: typeof process.env.CORS_ORIGINS === 'string' ? process.env.CORS_ORIGINS.split(",") : process.env.CORS_ORIGINS }) // OPTIONAL RATE LIMITER if ("RATE_MAX" in process.env) {