Does the WalletConnectButton work with vite? Everything seems to work fine in dev, but after build and deploy the button is disabled and does not allow me to connect.
This behavior is similar to what happens when a browser does not have a compatible wallet extension installed, but in this case, I have confirmed that the extension is installed and functioning in the browser.
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineConfig({
plugins: [nodePolyfills({include: ['stream'], globals: {Buffer: true, process: true}})],
build: {
rollupOptions: {
plugins: [
nodePolyfills({
include: ['stream'],
globals: {
Buffer: true,
process: true,
}
})
]
}
}
});