Nochmal das Alles ???

This commit is contained in:
rxf
2025-11-10 13:03:20 +01:00
parent aa6da7f7e1
commit f8879d8bc9
4 changed files with 4 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./src/assets/react.svg" /> <link rel="icon" type="image/svg+xml" href="./src/assets/react.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>beoanswer_react</title> <title>beoanswer</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@@ -1,7 +1,7 @@
{ {
"name": "beoanswer_react", "name": "beoanswer_react",
"private": true, "private": true,
"version": "1.0.1", "version": "1.0.2",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -10,6 +10,7 @@
margin: auto; margin: auto;
border: 1px solid blue; border: 1px solid blue;
background: lightgray; background: lightgray;
border-radius: 10px;
} }
button { button {

View File

@@ -5,6 +5,7 @@ import react from '@vitejs/plugin-react'
export default defineConfig(({ mode }) => { export default defineConfig(({ mode }) => {
return { return {
plugins: [react()], plugins: [react()],
base: mode === 'production' ? '/beoanswer/' : '/', // Nur in Production Unterverzeichnis
server: { server: {
// Proxy nur für Development // Proxy nur für Development
proxy: mode === 'development' ? { proxy: mode === 'development' ? {