mirror of
https://gitlab.com/DanLegoff/mgap.git
synced 2026-11-16 14:02:36 +00:00
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: 'resources/js/app.jsx',
|
|
refresh: true,
|
|
}),
|
|
react(),
|
|
],
|
|
});
|
|
|
|
/* import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
// 0.0.0.0 hace que Vite escuche a toda tu red (celular y túneles)
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
strictPort: true,
|
|
cors: true,
|
|
// allowedHosts: ['.ngrok-free.dev'],
|
|
hmr: {
|
|
// AQUÍ LA CLAVE:
|
|
// Si vas a pasar el link de ngrok, poné la URL de ngrok (sin el https://)
|
|
// Si vas a usarlo vos solo con el celu, poné tu IP de Tailscale: '100.94.143.14'
|
|
host: '100.94.143.14',
|
|
// host: "alycia-mountainous-overgreatly.ngrok-free.dev",
|
|
//protocol: 'wss',
|
|
},
|
|
|
|
},
|
|
plugins: [
|
|
laravel({
|
|
input: ['resources/css/app.css', 'resources/js/app.jsx'],
|
|
refresh: true,
|
|
}),
|
|
react(),
|
|
],
|
|
}); */ |