Vite.js requires global and process polyfills
If you’re using Vite.js with react and using the Dynamic SDK you may get this error in your console:process module which is natively not in the browser environment nor is it automatically polyfilled by Vite.
Polyfill process using vite.config.js
To fix this we must modify the vite.config.js file to modify esbuild to polyfill this for us. Here is a minimal example config:
React Static Flag Error. At this time, you can ignore this error in local development environment.