Skip to content

Commit

Permalink
Increase body size limit in MiniOxygen (#1421)
Browse files Browse the repository at this point in the history
* Update package-lock

* Increase the request body size limit when running locally on MiniOxygen

* Changesets
  • Loading branch information
frandiox committed Oct 16, 2023
1 parent 2941466 commit 832a0ea
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .changeset/thirty-news-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/mini-oxygen': patch
'@shopify/cli-hydrogen': patch
---

Increase the request body size limit to 100mb when running locally.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/mini-oxygen/src/mini-oxygen/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export function createServer(
app.use(SSEUrl, createAutoReloadMiddleware(mf));
}

app.use(bodyParser.raw({type: '*/*'}));
app.use(bodyParser.raw({type: '*/*', limit: '100mb'}));
app.use(createRequestMiddleware(mf, {autoReload, proxyServer, ...rest}));

const server = http.createServer(app);
Expand Down

0 comments on commit 832a0ea

Please sign in to comment.