feat: enabled tsup code splitting and esm directory import, removed manual copy of files

This commit is contained in:
Akhil Mohan
2024-02-02 16:22:08 +05:30
parent 72d46efba5
commit b3d4787e21
9 changed files with 440 additions and 275 deletions
@@ -45,6 +45,9 @@ export const registerExternalNextjs = async (
server.route({
method: ["GET", "PUT", "PATCH", "POST", "DELETE"],
url: "/*",
schema: {
hide: true
},
handler: (req, res) =>
nextApp
.getRequestHandler()(req.raw, res.raw)
+2 -1
View File
@@ -43,6 +43,7 @@ export const fastifySwagger = fp(async (fastify) => {
});
await fastify.register(swaggerUI, {
routePrefix: "/docs"
routePrefix: "/api/docs",
prefix: "/api/docs"
});
});