Skip to content

Commit ccb67ea

Browse files
erictheisePessimistress
authored andcommitted
Document Next.js config for the mapbox-gl fork. (#1576)
1 parent 49ee815 commit ccb67ea

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/get-started/get-started.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,19 @@ module.exports = {
108108
]
109109
};
110110
```
111+
112+
In Next.js:
113+
114+
```js
115+
// next.config.js
116+
const nextConfig = {
117+
// ...
118+
webpack: (config) => {
119+
config.resolve.alias = {
120+
...config.resolve.alias,
121+
'mapbox-gl': 'maplibre-gl',
122+
};
123+
// ...
124+
}
125+
};
126+
```

0 commit comments

Comments
 (0)