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 efd7afd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 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();
return "hello";
});

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

0 comments on commit efd7afd

Please sign in to comment.