From afb7e7906c2cb78526403d1a61ab579fe9098f4d Mon Sep 17 00:00:00 2001 From: Will Freeman Date: Sun, 1 Feb 2026 17:17:34 -0700 Subject: [PATCH] add to cors, log level --- api/server.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api/server.ts b/api/server.ts index cfaa088..0d69ff0 100644 --- a/api/server.ts +++ b/api/server.ts @@ -7,7 +7,7 @@ import { GithubClient, SponsorsResponseSchema } from './services/GithubClient'; const start = async () => { const server: FastifyInstance = Fastify({ logger: { - level: 'info', + level: 'error', transport: { target: 'pino-pretty', options: { @@ -33,13 +33,14 @@ const start = async () => { }); }); - // CORS config + // Coors Light Config await server.register(cors, { origin: [ - 'http://localhost:8080', - 'http://localhost:5173', + 'http://localhost:5173', // vite dev server 'https://deflock.me', 'https://www.deflock.me', + 'https://deflock.org', // will migrate + 'https://www.deflock.org', // will migrate ], methods: ['GET', 'HEAD'], });