Closed Neosoulink closed 4 days ago
If it's possible, I'm volunteering to contribute to this one
No one on our team has experience with Nest.js so we'd appreciate a contribution for this!
@Neosoulink what the config you use in launch.json for debug purpose in nestjs?
Hey @Cirilord,
I did not integrate a launch.json
for this example
Do you have any idea what it would look like?
@Cirilord, I'm not sure about the context... Could you share more details or needed behavior?
Sure, i'm trying to create a configuration inside launch file to debug my nextjs application
@Cirilord okay... Note that you're free to configure your debugger as you prefer and it's beyond this issue's scope.
But, as an example, if you want to set a configuration that launches both apps in development mode (/api
and web
), you can use TurboRepo
as follows:
{
"version": "0.0.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch apps in dev mode (using turbo repo)",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run-script", "dev"],
"env": {
"NODE_ENV": "development"
},
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
This configuration will execute the script at the root
of your project and will launch your apps/packages in the development mode.
Thanks @Neosoulink! It worked very well
What is the improvement or update you wish to see?
It would be great to have a
with-nestjs
example integratedIs there any context that might help us understand?
Starting a NestJs project managed within turbo-repo is just great and I recommend it!
However, the
turbo
repo doesn't include an official example to start a NestJS Turbo-repo project.