build: port vite port configuration (#12223)
This commit is contained in:
parent
0efacdfcf0
commit
3e00b32fae
2 changed files with 5 additions and 2 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',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue