Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Remove /api proxy #253

Open
3 tasks
mattvb91 opened this issue Feb 6, 2022 · 0 comments
Open
3 tasks

Remove /api proxy #253

mattvb91 opened this issue Feb 6, 2022 · 0 comments

Comments

@mattvb91
Copy link
Owner

mattvb91 commented Feb 6, 2022

Currently every request that goes to /api triggers the nextjs lambda which then in turn proxies a request out to the "real" PHP lambda.
So for every request coming in we are actually using 2 lambdas

Once we can override custom paths to a custom origin this issue should be fixed and all /api requests land directly on the php lambda

serverless-nextjs/serverless-next.js#892

  • remove http-proxy-middleware & @types/http-proxy-middleware packages
  • Remove /api page
  • Add route into frontend/serveless.yml config to route to php lambda
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant