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:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user