webauthn_server_clients/client-node-vite/vite.config.js
2025-12-07 15:17:29 +01:00

19 lines
474 B
JavaScript

import { defineConfig } from 'vite';
export default defineConfig({
server: {
host: '192.168.1.3',
port: 3000,
https: false, // WebAuthn richiede HTTPS (usa certificati validi)
allowedHosts: ['my.patachina2.casacam.net'],
hmr: false,
proxy: {
// opzionale: se vuoi proxare /webauthn verso auth.patachina.it
'/my': {
target: 'https://auth.patachina.it',
changeOrigin: true,
secure: true,
},
},
},
});