first commit
This commit is contained in:
commit
405df0a122
3083 changed files with 69203 additions and 0 deletions
72
vite.portal.config.js
Normal file
72
vite.portal.config.js
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
/**
|
||||
* Vite-Konfiguration für Backend (Portal)
|
||||
* - Domain: pr-copilot.test
|
||||
* - Port: 5177
|
||||
* - Verwendet FluxUI
|
||||
* - Build-Verzeichnis: public/build/portal
|
||||
*
|
||||
* Starten mit: npm run dev:portal
|
||||
*/
|
||||
import { defineConfig } from "vite";
|
||||
import laravel from "laravel-vite-plugin";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
|
||||
const httpsConfig =
|
||||
process.env.NODE_ENV === "production"
|
||||
? {
|
||||
// In Produktion: echte Zertifikate verwenden
|
||||
key: process.env.SSL_KEY_PATH,
|
||||
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",
|
||||
],
|
||||
}),
|
||||
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,
|
||||
},
|
||||
host: "0.0.0.0",
|
||||
port: 5177,
|
||||
strictPort: true,
|
||||
allowedHosts: [
|
||||
"assets.pr-copilot.test",
|
||||
"pr-copilot.test",
|
||||
"localhost",
|
||||
"0.0.0.0",
|
||||
],
|
||||
hmr: {
|
||||
host: "assets.pr-copilot.test",
|
||||
protocol: "wss",
|
||||
},
|
||||
origin: "https://assets.pr-copilot.test", // Ohne Port!
|
||||
},
|
||||
build: {
|
||||
outDir: "public/build/portal",
|
||||
assetsDir: "",
|
||||
manifest: "manifest.json",
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: undefined,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue