Document Next.js config for the mapbox-gl fork. (#1576)

This commit is contained in:
Eric Theise 2021-12-06 14:43:44 -06:00 committed by Xiaoji Chen
parent 49ee815b09
commit ccb67eaad8

View File

@ -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',
};
// ...
}
};
```