first commit
This commit is contained in:
commit
56aa7836f4
140 changed files with 24604 additions and 0 deletions
36
backend/vite.config.js
Normal file
36
backend/vite.config.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
// npm run dev # dev server
|
||||
// npm run build # build for production
|
||||
// npm run preview # preview production build
|
||||
|
||||
import { defineConfig } from "vite";
|
||||
import laravel from "laravel-vite-plugin";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import fs from "fs";
|
||||
|
||||
// Pfade zu deinen MAMP-Zertifikaten
|
||||
const certPath = "/Applications/MAMP/Library/OpenSSL/certs/thats-me.test.crt";
|
||||
const keyPath = "/Applications/MAMP/Library/OpenSSL/certs/thats-me.test.key";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
laravel({
|
||||
input: ["resources/css/app.css", "resources/js/app.js"],
|
||||
refresh: [`resources/views/**/*`],
|
||||
}),
|
||||
tailwindcss(),
|
||||
],
|
||||
server: {
|
||||
https: {
|
||||
key: fs.readFileSync(keyPath),
|
||||
cert: fs.readFileSync(certPath),
|
||||
},
|
||||
cors: true, // Ergänze diese Zeile
|
||||
host: "192.168.1.8",
|
||||
port: 5173,
|
||||
hmr: {
|
||||
host: "192.168.1.8",
|
||||
protocol: "https",
|
||||
},
|
||||
origin: "https://192.168.1.8:5173",
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue