Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeliex/next-workers-protocol-bug
https://github.com/yeliex/next-workers-protocol-bug
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeliex/next-workers-protocol-bug
- Owner: yeliex
- Created: 2023-09-01T08:47:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-01T08:51:54.000Z (over 1 year ago)
- Last Synced: 2024-04-13T07:57:59.198Z (9 months ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# next-workers-protocol-bug
## Reproduce
```shell
# start server
npm run dev
# OR
npm run build && npm start
# OR set `next.config.js`/output='standalone'
npm run build && node .next/standalone/server,js# curl
curl -s -o /dev/null -vv -H "x-forwarded-proto:https" http://localhost:3000
# OR request api
curl -s -o /dev/null -vv -H "x-forwarded-proto:https" http://localhost:13000/api/test
```**EXPECT**
`request.nextUrl.protocol => http`**GOT**
`request.nextUrl.protocol => https`