diff --git a/src/server.ts b/src/server.ts index bf9a471..a7f395f 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,6 +1,12 @@ +import fastifyStatic from '@fastify/static'; import api from './api'; +import path from 'path'; -const server = api({ title: '@eyevinn/typescript-nodejs' }); +const server = api({ title: 'AI Code Reviewer' }); +server.register(fastifyStatic, { + root: path.join(__dirname, '../out'), + prefix: '/' +}); const PORT = process.env.PORT ? Number(process.env.PORT) : 8000;