Configure Vite for Cloudflare Tunnel with HMR support
This commit is contained in:
@@ -11,13 +11,16 @@ export default defineConfig({
|
|||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
],
|
],
|
||||||
server: {
|
server: {
|
||||||
host: true,
|
host: '127.0.0.1',
|
||||||
port: 5173,
|
port: 5173,
|
||||||
allowedHosts: [
|
allowedHosts: [
|
||||||
'localhost',
|
'localhost',
|
||||||
'sistema.gestionrecursoshidricos.com',
|
'sistema.gestionrecursoshidricos.com',
|
||||||
],
|
],
|
||||||
hmr: {
|
hmr: {
|
||||||
|
protocol: 'wss',
|
||||||
|
host: 'sistema.gestionrecursoshidricos.com',
|
||||||
|
clientPort: 443,
|
||||||
overlay: true,
|
overlay: true,
|
||||||
},
|
},
|
||||||
// proxy:{
|
// proxy:{
|
||||||
|
|||||||
Reference in New Issue
Block a user