From 54067bd4ff509749cd643a2a721e070fd6e0866a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Neves?= Date: Tue, 30 Jun 2026 22:04:28 +0000 Subject: [PATCH] docs(exedev): add missing nodePolyfills plugin to vite config example The Quick Deploy section showed a complete vite.config.js replacement that omitted the nodePolyfills plugin required for Buffer, global, and process polyfills. Without these polyfills, the dev server would fail when trying to decode invoices because the app imports Buffer in invoices.js and bolt11.js. --- DEPLOYMENT_EXEDEV.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/DEPLOYMENT_EXEDEV.md b/DEPLOYMENT_EXEDEV.md index 00bf337..3e310d9 100644 --- a/DEPLOYMENT_EXEDEV.md +++ b/DEPLOYMENT_EXEDEV.md @@ -40,9 +40,15 @@ Update `vite.config.js` to allow requests from your exe.dev hostname: ```typescript import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; +import { nodePolyfills } from 'vite-plugin-node-polyfills'; export default defineConfig({ - plugins: [react()], + plugins: [ + react(), + nodePolyfills({ + globals: { Buffer: true, global: true, process: true }, + }), + ], server: { host: '0.0.0.0', port: 5173,