You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently attempted to build my choo project using the command npm run-script build. When I ran my server on the files that were generated in the dist directory, none of my dynamic routes worked. I.e. have a route with something like app.route('/:user', user). This works great in dev, but after running my http server on the dist directory and attempt to go to a route I get Error code: 404, file not found. To run my http server I am using the following command in the dist directory: python -m simpleHttpServer 8000. Any clues on how to solve this issue?
The text was updated successfully, but these errors were encountered:
I recently attempted to build my choo project using the command
npm run-script build
. When I ran my server on the files that were generated in thedist
directory, none of my dynamic routes worked. I.e. have a route with something likeapp.route('/:user', user)
. This works great in dev, but after running my http server on thedist
directory and attempt to go to a route I getError code: 404, file not found
. To run my http server I am using the following command in the dist directory:python -m simpleHttpServer 8000
. Any clues on how to solve this issue?The text was updated successfully, but these errors were encountered: