Fix Vite proxy inside Docker and add success pages

- vite.config.ts: proxy target via VITE_API_TARGET env var (falls back to localhost)
- docker-compose.dev.yml: set VITE_API_TARGET=http://backend:8000
- Add /login-success and /register-success placeholder pages
- Show real API error messages in login/register forms

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
curo1305
2026-04-12 16:12:35 +02:00
parent e6d7888513
commit f746cb0825
9 changed files with 82 additions and 7 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ export default defineConfig({
server: {
proxy: {
"/api": {
target: "http://localhost:8000",
target: process.env.VITE_API_TARGET ?? "http://localhost:8000",
changeOrigin: true,
},
},