reearth / resium

React components for 🌏 Cesium
https://resium.reearth.io
MIT License
727 stars 134 forks source link

Update documentation to support recent Next versions #655

Open gip opened 5 months ago

gip commented 5 months ago

Documentation could be updated as for recent version of Next, the next.config.js file should be changed to:

const nextConfig = {
  reactStrictMode: true,
  webpack: (config, { webpack }) => {
    config.plugins.push(
      new webpack.DefinePlugin({
        CESIUM_BASE_URL: JSON.stringify('cesium'),
      })
    )
    return config
  }
}

export default nextConfig

Happy to do a PR if that helps.