2021年1月20日星期三

Netlify Gatsby Lambdas: how to send many routes to a single function file

How can I set many routes to be resolved to the same js function file using Gatsby (inside Netlify), and then decide what to do based on the path, like node-express?

I am porting an express app with serverless-http and it will be easier to maintain it this way.

There are several requires which I'd want not to repeat on every js function file.

https://stackoverflow.com/questions/65820621/netlify-gatsby-lambdas-how-to-send-many-routes-to-a-single-function-file January 21, 2021 at 11:07AM

没有评论:

发表评论