diff --git a/index.js b/index.js index b5f84f5..068960c 100644 --- a/index.js +++ b/index.js @@ -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}!`)); diff --git a/package.json b/package.json index eeefd07..747ab48 100644 --- a/package.json +++ b/package.json @@ -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",