mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Document Next.js config for the mapbox-gl fork. (#1576)
This commit is contained in:
parent
49ee815b09
commit
ccb67eaad8
@ -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',
|
||||
};
|
||||
// ...
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user