fides
fides copied to clipboard
Cannot navigate directly to a frontend path when serving static files via python server
Bug Description
Right now we can go to localhost:8080 and navigate to localhost:8080/dataset via the navbar. However, browsing directly to localhost:8080/dataset does not work.
Steps to Reproduce
nox -s dev- In
clients/admin-uirunnpm run prod-export - Navigate directly to
localhost:8080/datasetand check out the error
Expected behavior
Navigating directly to a path should give the same result as if we were to navigate to it through next's routing
Additional context
This should be a nextjs configuration issue. The same thing happens if you try to serve the exported files out via a simple server i.e. python -m http.server. Some potential resources/solutions:
- https://github.com/vercel/next.js/discussions/10522
- https://stackoverflow.com/questions/67034554/nextjs-url-not-working-after-getting-exported
- https://nextjs.org/docs/api-reference/next.config.js/exportPathMap