test:v2
All checks were successful
Update changelog / changelog (push) Successful in 28s

This commit is contained in:
Pc
2026-01-04 16:15:08 +01:00
parent 13909c46f6
commit 5dd751600c
2 changed files with 37 additions and 48 deletions

View File

@@ -14,26 +14,41 @@ export default defineConfig(({ mode }) => {
const backendTarget = env.VITE_API_TARGET;
return {
envDir: envDirectory,
envDir: envDirectory,
plugins: [
react() as PluginOption,
tailwindcss() as PluginOption,
],
server: {
port: 6568,
host: true,
host: true, // Pozwala na dostęp przez IP w sieci lokalnej
// Jeśli testujesz subdomeny lokalnie (np. app.local.ktty.is), dodaj to:
allowedHosts: [
'.ktty.is',
'localhost',
'127.0.0.1',
],
// vite.config.ts
proxy: {
'/api': {
target: backendTarget,
changeOrigin: true,
secure: false,
cookieDomainRewrite: {
"*": ""
},
},
},
},
preview: {
port: 6568,
port: 6568,
allowedHosts: true,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
}
})