ArcherGu / fast-vite-nestjs-electron

Vite + Vue + Electron + Nestjs with esbuild, crazy fast! ⚡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building gives a build without node process

Acetyld opened this issue · comments

This also happens on template, you clone it then yarn, yarn build then execute the mac image from dist or on windows
Screenshot 2023-09-27 at 10 38 29
But it doesnt regonizes anything node/nestjs related

N.v.m, something went wrong while starting NestJS i think, the TypeORM config was not correct.

But how can i debug this in production, so how can i debug the nodejs part?

Are you using sqlite? I use TypeORM + Sqlite as my database in production and it actually works really well. You can't debug in production mode, but you can debug in development mode, just like a normal node.js application. Below is a simple configuration:
.vscode/launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug with npm",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceRoot}",
      "runtimeArgs": [
        "run-script",
        "dev"
      ],
      "runtimeExecutable": "npm",
      "console": "integratedTerminal"
    }
  ]
}