Skip to content

Commit

Permalink
fix: frontend was never served by service (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
birme authored Dec 12, 2024
1 parent 6f1675d commit 11047b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 11047b1

Please sign in to comment.