fix(gateway): CORS, memory userId from session, pgvector auto-init (#110)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

Co-authored-by: Jason Woltje <jason@diversecanvas.com>
Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #110.
This commit is contained in:
2026-03-15 16:40:28 +00:00
committed by jason.woltje
parent 6d2b81f6e4
commit 72a73c859c
5 changed files with 25 additions and 16 deletions

View File

@@ -35,6 +35,11 @@ async function bootstrap(): Promise<void> {
new FastifyAdapter({ bodyLimit: 1_048_576 }),
);
app.enableCors({
origin: process.env['GATEWAY_CORS_ORIGIN'] ?? 'http://localhost:3000',
credentials: true,
});
await app.register(helmet as never, { contentSecurityPolicy: false });
app.useGlobalPipes(
new ValidationPipe({