#Can't run in production?
35 messages · Page 1 of 1 (latest)
Did you take a look at your dist directory and checked if the main.js is present?
of course, the main.js file is exists
take a closer look at your screenshot
the main.js isn't in the dist directory
it is in dist/src
you have to change the script in your package.json
it should look like this:
node dist/src/main
Thanks sir, it's work. But I think I never changed build target
Can you show us your nest-cli.json file ?
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
}
}
Ok that's weird, maybe your tsconfig file is the culprit
I did a few times for e.g. if I have static files on the same depth as th src directory
This post has been marked as resolved. :white_check_mark:
Please read through the conversation and resolution if you are having the same issue, and then re-open the post if you are still having trouble, providing as much extra information as possible.
I don't know how to using nest.js for efficient
Please give me an example project structure for standard build and monorepo if you have
What do you mean?
I need project reference
Of what though?
use case of monorepo and modular
What should the monorepo contain? What kind of monorepo? Nest monorepo, nx monorepo, turbo, yarn/npm/pnpm workspace, lerna, rush, pants, something else? Why do you want a monorepo reference?
anything, just for reference in application development idea creation
Okay, but why a monorepo? Do you have a specific use case here?
I building live stream app, so I will use microservice architecture. first project for business flow and second for handle webrtc api
I think monorepo architecture for join multiple project into single repository
Is I am wrong?
Okay, so the next question is what monorepo management tool do you want to use here?
Okay thanks, I need to read more about monorepo concept
I feel that I don't need the concept of a monorepo yet. I am building the app using TypeScript, so I want to share types between the server and client to keep the code consistent
Therefore, I have been considering the concept of a monorepo
You need to ask this as your own question and not hijack another person's thread
Worst part is this is chat gpt generated xD
Nothing surprises me these days 😆
You are right, I posted in wrong the place. Therefore, after reading carefully my question (comparing with ChatGPT and judging where is right or wrong to post) do you have some helpful answer?