https://github.com/jetbridge/next-middleware-repro
Reproduction for middleware not being applied in standalone output
https://github.com/jetbridge/next-middleware-repro
Last synced: 8 months ago
JSON representation
Reproduction for middleware not being applied in standalone output
- Host: GitHub
- URL: https://github.com/jetbridge/next-middleware-repro
- Owner: jetbridge
- License: mit
- Created: 2022-11-24T04:45:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T05:02:44.000Z (over 3 years ago)
- Last Synced: 2025-03-09T19:44:58.679Z (over 1 year ago)
- Language: TypeScript
- Size: 41.2 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Setup
```shell
npm i -g pnpm # install pnpm globally
pnpm i # install dependencies + generate types from DB and GQL schemas
pnpm start:web # start nextjs dev server
```
Go to /profile with the local dev server running, it is clearly intercepted by next-auth.
Now deploy the stack with `pnpm exec sst deploy`, deploy to AWS, and see the nextjs standalone build running on lambda does not apply middleware to /profile