I created a public folder within root directory to store user uploaded files. But under npm run start:dev
mode, every time I upload a file, Nest has detected file change and restarts server. How can I do to avoid this? Thanks.
Dir structure:
-project
-dist
-src
-public
-(other files)
Insert the following in tsconfig.json
:
...,
"include": ["src"],
"exclude": [
"node_modules",
"dist",
"public"
]
Under tsconfig.json
include the below property immediately after exclude
property
"include": [ "src"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With