resium icon indicating copy to clipboard operation
resium copied to clipboard

Update documentation to support recent Next versions

Open gip opened this issue 10 months ago • 0 comments

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.

gip avatar Apr 09 '24 22:04 gip