23-01-2026

This commit is contained in:
Kevin Adametz 2026-01-23 17:33:10 +01:00
parent 07959c0ba2
commit 854ce02bf6
166 changed files with 32909 additions and 1262 deletions

View file

@ -12,6 +12,23 @@ const httpsConfig =
}
: false; // HTTP für Entwicklung, Traefik handhabt SSL
// Alle erlaubten Domains für Multi-Domain CORS
const allowedDomains = [
"https://portal.b2in.test",
"https://b2in.test",
"https://b2a.test",
"https://stileigentum.test",
"https://style2own.test",
"https://assets.b2in.test",
"http://portal.b2in.test",
"http://b2in.test",
"http://b2a.test",
"http://stileigentum.test",
"http://style2own.test",
"http://assets.b2in.test",
"http://localhost:5174",
];
export default defineConfig({
plugins: [
laravel({
@ -32,13 +49,16 @@ export default defineConfig({
],
server: {
https: false,
cors: true,
host: "0.0.0.0",
port: 5174,
cors: {
origin: allowedDomains,
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
credentials: true,
},
hmr: {
host: "assets.b2in.test",
protocol: "wss",
//port: 5174,
},
origin: "https://assets.b2in.test",
},