Skip to content

Commit

Permalink
test: try to ignore vite registration to know if it is the reason it …
Browse files Browse the repository at this point in the history
…stales
  • Loading branch information
jean-michelet committed Aug 25, 2024
1 parent 1d062c8 commit 7a9d59d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ export default async function serviceApp(
});

// We setup the SPA
await fastify.register(fastifyVite, function (fastify) {
return {
root: path.resolve(import.meta.dirname, '../'),
dev: fastify.config.FASTIFY_VITE_DEV_MODE,
spa: true
}
});
// await fastify.register(fastifyVite, function (fastify) {
// return {
// root: path.resolve(import.meta.dirname, '../'),
// dev: fastify.config.FASTIFY_VITE_DEV_MODE,
// spa: true
// }
// });

// Route must match vite "base": https://vitejs.dev/config/shared-options.html#base
fastify.get('/', (req, reply) => {
return reply.html();
});

await fastify.vite.ready();
// await fastify.vite.ready();
}

0 comments on commit 7a9d59d

Please sign in to comment.