Fix dashboard authentication and routing issues

- Fix NODE_ENV=production cookie security issue for local development
- Add production API URL configuration (.env.production)
- Enable SPA routing with serve -s flag for frontend
- Fix React hooks violation in DashboardPage (error #310)
- Move useQuery hooks before conditional returns
- Rebuild frontend with all fixes applied

Resolves dashboard 401 errors, 404 routing issues, and React error #310
This commit is contained in:
Andrei
2025-08-23 19:53:33 +00:00
parent f797f9b07c
commit 634636a03e
10 changed files with 861 additions and 451 deletions

5
test_cookies.txt Normal file
View File

@@ -0,0 +1,5 @@
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_localhost FALSE / FALSE 1756582325 auth_token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjbWVvbmw5Y3UwMDAxejZsanBsejdrb2RrIiwiZW1haWwiOiJkZWJ1Z0B0ZXN0LmNvbSIsImlhdCI6MTc1NTk3NzUyNSwiZXhwIjoxNzU2NTgyMzI1fQ.CWg_n5uCjMLGEceibwk3Q20Njkb8Vnbsdj2j-ujzhtI