Fix frontend TypeScript build errors

- Inline tsconfig.base.json settings into frontend/tsconfig.json (same
  Docker context issue as backend — only frontend/ is copied)
- Upgrade @types/react and @types/react-dom to ^19.0.0 to satisfy
  antd 5.20.x which references React.ActionDispatch (React 19 type);
  React 18 runtime is unchanged

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
deadRabbit
2026-02-22 12:37:04 +01:00
parent 11875777b8
commit 139a13848c
3 changed files with 26 additions and 3 deletions

19
.env Normal file
View File

@@ -0,0 +1,19 @@
# PostgreSQL connection URL
POSTGRES_URL=postgresql://mremotify:mremotify@localhost:5432/mremotify
# AES-256 encryption key for passwords (must be exactly 32 characters)
ENCRYPTION_KEY=change-me-to-a-random-32char-key!
# JWT signing secret
JWT_SECRET=c4baf6aca61629fcdf2285be2162e662ffec79a5db4e24d8bad2556f6f10c8c5
# Default admin credentials (used during first-time seeding)
ADMIN_USER=admin
ADMIN_PASSWORD=admin123
# Apache Guacamole daemon
GUACD_HOST=guacd
GUACD_PORT=4822
# Backend port
PORT=3000

View File

@@ -21,8 +21,8 @@
"zustand": "^4.5.5"
},
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "^5.5.4",
"vite": "^5.4.3"

View File

@@ -1,11 +1,15 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,