-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only root route returns #6
Comments
The root route is a somewhat hacky way to demonstrate the Express server works. You can reach the |
@neverendingqs Is there any way to route |
I haven't had a chance to try it yet, but a rewrite rule might do the trick: https://www.netlify.com/docs/redirects/#rewrites-and-proxying |
Add this to [[redirects]]
from = "/*"
to = "/.netlify/functions/server/:splat"
status = 200 |
Sadly, the redirect rules do not work. The curios thing is that they do work when I run I've been trying to add a view engine for this express app, but I get a error similar to |
I agree this would be a lot more useful with redirects in place. |
I have the same issue but only locally. When i deploy to Netlify the other routes is working fine but locally they don't work.
/another will not work locally. Locally it will always go to root path. |
https://netlify-express.netlify.com/
renders,https://netlify-express.netlify.com/another
returns a404
.I've been trying to build a simple app using this as a boilerplate, and none of my defined routes work apart from /. Any ideas?
The text was updated successfully, but these errors were encountered: