feat: add nestjs app (#172)

This commit is contained in:
Manuel authored and GitHub committed 2024-03-03 21:07:27 +01:00
1 parent 7f2ab7f192
commit 9440d04261
16 files changed
+2181 -181

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
import { defineConfig } from "vite";
import { VitePluginNode } from "vite-plugin-node";
export default defineConfig({
plugins: [
...VitePluginNode({
adapter: "nest",
appPath: "./src/main.ts",
tsCompiler: "swc",
}),
],
optimizeDeps: {
// Vite does not work well with optionnal dependencies,
// mark them as ignored for now
exclude: [
"@nestjs/microservices",
"@nestjs/websockets",
"cache-manager",
"class-transformer",
"class-validator",
"fastify-swagger",
],
esbuildOptions: {
tsconfigRaw: {
compilerOptions: {
experimentalDecorators: true,
},
},
},
},
server: {
port: 3100,
},
});