-
I run the It's work successfully when I run Btw, I am using NuxtJS and ExpressJS Here is my
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Still got 404 error even I change the routes to:
|
Beta Was this translation helpful? Give feedback.
-
Hi @arhakim You don't need
I would recommending converting your Express app to proper Serverless Functions by following this Guide: https://zeit.co/guides/migrate-to-zeit-now#serverful-vs.-serverless-apis |
Beta Was this translation helpful? Give feedback.
-
This fix the issue. Thank you! |
Beta Was this translation helpful? Give feedback.
Hi @arhakim
You don't need
{"src": "/api", "dest": "/api/index.js"}
because that is how routing already works. If an index file is found in the directory then it will be served. Visiting these paths will all serve the same function:/api
/api/index
/api/index.js
I would recommending converting your Express app to proper Serverless Functions by following this Guide: https://zeit.co/guides/migrate-to-zeit-now#serverful-vs.-serverless-apis