Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
MIT License
311
stars
35
forks
source link
Unable to setup route for a Nuxt application. Guidance appreciated! #92
Hello maintainers! Aplogies for posting an issue, but it seemed like the best place for now.
Anyways, I'm running a Nuxt 3 application at http://localhost:3000/reporting/finance. The gateway is running with express on port 8080 on localhost. Here's my index.js:
With this setup, I am able to navigate to localhost:8080/app/reporting/finance and get a 200. But the 200 is only for the HTML document, and every other JS/CSS file returns a 404. Here's screenshots for the errors:
I am not sure why this is happening, or how to solve this. Any help is appreciated!
Seems like it was a simple fix. The pathRegex was set to /reporting/finance. Once I changed it to /reporting/finance/* I was able to get the assets as needed.
Hello maintainers! Aplogies for posting an issue, but it seemed like the best place for now.
Anyways, I'm running a Nuxt 3 application at
http://localhost:3000/reporting/finance
. The gateway is running with express on port 8080 on localhost. Here's my index.js:With this setup, I am able to navigate to
localhost:8080/app/reporting/finance
and get a 200. But the 200 is only for the HTML document, and every other JS/CSS file returns a 404. Here's screenshots for the errors:I am not sure why this is happening, or how to solve this. Any help is appreciated!