12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
|
|
@ -1,10 +1,10 @@
|
|||
/**
|
||||
* Vite-Konfiguration für Backend (Portal)
|
||||
* - Domain: pr-copilot.test
|
||||
* - Domain: presseportale.test
|
||||
* - Port: 5177
|
||||
* - Verwendet FluxUI
|
||||
* - Build-Verzeichnis: public/build/portal
|
||||
*
|
||||
*
|
||||
* Starten mit: npm run dev:portal
|
||||
*/
|
||||
import { defineConfig } from "vite";
|
||||
|
|
@ -19,45 +19,29 @@ const httpsConfig =
|
|||
cert: process.env.SSL_CERT_PATH,
|
||||
}
|
||||
: true; // Self-signed für Entwicklung
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
laravel({
|
||||
input: ["resources/css/portal.css", "resources/js/app.js"],
|
||||
refresh: [
|
||||
"resources/views/portal/**/*.blade.php",
|
||||
"resources/views/layouts/portal/**/*.blade.php",
|
||||
"resources/views/components/**/*.blade.php",
|
||||
"app/Livewire/Portal/**/*.php",
|
||||
],
|
||||
refresh: ["resources/views/portal/**/*.blade.php"],
|
||||
}),
|
||||
tailwindcss({
|
||||
config: "./tailwind.portal.config.js",
|
||||
}),
|
||||
],
|
||||
server: {
|
||||
https: false, // Traefik übernimmt SSL
|
||||
cors: {
|
||||
origin: [
|
||||
"https://pr-copilot.test",
|
||||
"https://assets.pr-copilot.test",
|
||||
],
|
||||
credentials: true,
|
||||
},
|
||||
https: false, // Traefik übernimmt SSL, Vite läuft intern auf HTTP
|
||||
cors: true,
|
||||
host: "0.0.0.0",
|
||||
port: 5177,
|
||||
strictPort: true,
|
||||
allowedHosts: [
|
||||
"assets.pr-copilot.test",
|
||||
"pr-copilot.test",
|
||||
"localhost",
|
||||
"0.0.0.0",
|
||||
],
|
||||
port: 5174, // oder 5175
|
||||
hmr: {
|
||||
host: "assets.pr-copilot.test",
|
||||
protocol: "wss",
|
||||
host: "assets.presseportale.test",
|
||||
protocol: "wss", // Explizit wss für WebSocket Secure
|
||||
// WICHTIG: Die 'port'-Angabe hier entfernen!
|
||||
// Der Browser soll den Standard-Port (443) von Traefik nutzen.
|
||||
},
|
||||
origin: "https://assets.pr-copilot.test", // Ohne Port!
|
||||
// Das origin ist nicht mehr notwendig, da der HMR-Port wegfällt.
|
||||
},
|
||||
build: {
|
||||
outDir: "public/build/portal",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue