fix: replace Nginx with Caddy to fix "premature close" error while downloading larger files

This commit is contained in:
Elias Schneider
2024-02-29 14:41:45 +01:00
parent 1aa3d8e5e8
commit 43bff91db2
5 changed files with 25 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ export const config = {
const { apiURL } = getConfig().serverRuntimeConfig;
// A proxy to the API server only used in development.
// In production this route gets overridden by nginx.
// In production this route gets overridden by Caddy.
export default (req: NextApiRequest, res: NextApiResponse) => {
httpProxyMiddleware(req, res, {
headers: {