v1.36.0
Feature
Enhance navigation history management in MobileNavigation and NavigationColumn
- Introduced a method to retrieve raw navigation history from storage, allowing access to spaces that are filtered out by NavigationContext.
- Updated filtering logic to utilize raw navigation history for displaying spaces in both MobileNavigation and NavigationColumn components.
- Implemented event listeners for navigation history updates and storage changes to ensure UI consistency.
- Added functionality to manually add spaces to navigation history, improving user experience when navigating between spaces.
Feature
Convert to static build with JWT authentication
- Change Astro output from 'server' to 'static'
- Add prerender = false to all 96 API routes (converted to Netlify Functions)
- Export pass-through middleware for static build compatibility
- Create JWT auth helper (src/utils/auth-helpers.ts)
- Update 84 API routes to use getAuthFromRequest(request) instead of locals.auth()
- Update safe-fetch.ts to automatically include JWT tokens in API requests
- Remove server-side auth checks from sign-in/sign-up/upgrade pages
- Convert 9 pages to static shells (index, find, profile, new-space, upgrade, sign-in, sign-up, [id], dashboard)
- Remove server-side data fetching from page frontmatter
- Components now handle client-side data loading via API calls with JWT tokens
- **Authentication:** JWT tokens from Clerk session sent in Authorization header
- **Backward Compatibility:** Falls back to cookie-based auth if JWT not available
- **Static Build:** Pages are static HTML, API routes are serverless functions
- **Client-Side:** All data fetching moved to React components
- ✓ Build completes successfully
- ✓ Dev server starts without errors
- ⏳ Pending: Netlify preview deployment and auth flow testing
