From ccb67eaad876ca9da3cbfc77e6809f94306255f7 Mon Sep 17 00:00:00 2001 From: Eric Theise Date: Mon, 6 Dec 2021 14:43:44 -0600 Subject: [PATCH] Document Next.js config for the mapbox-gl fork. (#1576) --- docs/get-started/get-started.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/get-started/get-started.md b/docs/get-started/get-started.md index 2e46f23b..d9521479 100644 --- a/docs/get-started/get-started.md +++ b/docs/get-started/get-started.md @@ -108,3 +108,19 @@ module.exports = { ] }; ``` + +In Next.js: + +```js +// next.config.js +const nextConfig = { + // ... + webpack: (config) => { + config.resolve.alias = { + ...config.resolve.alias, + 'mapbox-gl': 'maplibre-gl', + }; + // ... + } +}; +```