1
0

merge: upstream

This commit is contained in:
Mar0xy
2023-11-03 15:35:12 +01:00
120 changed files with 2610 additions and 933 deletions
@@ -253,8 +253,9 @@ export class ClientServerService {
decorateReply: false,
});
} else {
const port = (process.env.VITE_PORT ?? '5173');
fastify.register(fastifyProxy, {
upstream: 'http://localhost:5173', // TODO: port configuration
upstream: 'http://localhost:' + port,
prefix: '/vite',
rewritePrefix: '/vite',
});