blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
136 stars 18 forks source link

Use content-relative URL for fetching `openapi.json` in docs #98

Closed blomqma closed 10 months ago

blomqma commented 10 months ago

For HTTP production environments that are not configured to use the x-forwarded-proto header, the API docs will default the fetch the openapi.json over plain HTTP, leading to mixed content errors. This change uses content-relative URL to fetch the openapi.json, which defaults to the currently used protocol.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rest-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2023 10:56pm
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2023 10:56pm