Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Make max post body size configurable (#3)
Browse files Browse the repository at this point in the history
* Make max post size configurable

* Bump version number
  • Loading branch information
Jesse Crocker authored Mar 2, 2020
1 parent ce7db9c commit 915ea36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function handleRequest(req, res, width, height, background, zoom, center, format
}

const app = express();
app.use(express.json());
app.use(express.json({ limit: process.env.MAX_BODY_SIZE || "10mb", extended: true }));
const port = 3000;
app.listen(port, () => console.log(`StaticMaps-gl listening on port ${port}!`));

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "StaticMaps-gl",
"version": "0.0.2",
"version": "0.0.3",
"description": "Static map rendering with mapbox-gl",
"keywords": [],
"main": "./index.js",
Expand Down

0 comments on commit 915ea36

Please sign in to comment.