Update vite.config.ts
This commit is contained in:
@@ -3,12 +3,23 @@ import react from '@vitejs/plugin-react'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
|
||||
define: {
|
||||
global: 'globalThis',
|
||||
},
|
||||
|
||||
// dev server (unchanged)
|
||||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
|
||||
// production preview server (THIS FIXES YOUR ISSUE)
|
||||
preview: {
|
||||
host: '127.0.0.1',
|
||||
port: 4173,
|
||||
allowedHosts: ['counter.lnpulse.app'],
|
||||
},
|
||||
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
|
||||
Reference in New Issue
Block a user