Skip to content

Commit 908fb5e

Browse files
committed
test: try to ignore vite registration to know if it is the reason it stales
1 parent 1d062c8 commit 908fb5e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/app.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import path from "node:path";
66
import fastifyAutoload from "@fastify/autoload";
77
import { FastifyInstance, FastifyPluginOptions } from "fastify";
8-
import fastifyVite from "@fastify/vite";
8+
// import fastifyVite from "@fastify/vite";
99

1010
export default async function serviceApp(
1111
fastify: FastifyInstance,
@@ -83,18 +83,18 @@ export default async function serviceApp(
8383
});
8484

8585
// We setup the SPA
86-
await fastify.register(fastifyVite, function (fastify) {
87-
return {
88-
root: path.resolve(import.meta.dirname, '../'),
89-
dev: fastify.config.FASTIFY_VITE_DEV_MODE,
90-
spa: true
91-
}
92-
});
86+
// await fastify.register(fastifyVite, function (fastify) {
87+
// return {
88+
// root: path.resolve(import.meta.dirname, '../'),
89+
// dev: fastify.config.FASTIFY_VITE_DEV_MODE,
90+
// spa: true
91+
// }
92+
// });
9393

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

99-
await fastify.vite.ready();
99+
// await fastify.vite.ready();
100100
}

0 commit comments

Comments
 (0)