Fix date parsing bug and Vite proxy port configuration

- Add safeParseDate helper to handle dates that may be strings, Date objects, or timestamps
- Replace all parseISO(event.*) calls with safeParseDate() to prevent "dateString.split is not a function" errors
- Fix Vite proxy target from port 3002 to 3001 to match backend server port
This commit is contained in:
Paul Nothaft
2026-01-02 10:49:42 +01:00
parent fbd7b67016
commit 97455ab047
2 changed files with 27 additions and 9 deletions
+2 -2
View File
@@ -29,11 +29,11 @@ const config: VitestUserConfig = {
host: true,
proxy: {
'/api': {
target: 'http://localhost:3002',
target: 'http://localhost:3001',
changeOrigin: true,
},
'/photos': {
target: 'http://localhost:3002',
target: 'http://localhost:3001',
changeOrigin: true,
},
},