fix: replace Nginx with Caddy to fix "premature close" error while downloading larger files
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user