Skip to content

Conversation

@IanMayo
Copy link
Member

@IanMayo IanMayo commented Aug 21, 2025

No description provided.

IanMayo and others added 5 commits August 20, 2025 17:14
- Add basename prop to React Router using Vite's BASE_URL
- Fix 404.html asset paths to include /ToolVault/ prefix
- Implement proper SPA redirect mechanism for GitHub Pages
- Handle redirected URLs in main application entry point

This fixes the issue where URLs showed debrief.github.io instead of
debrief.github.io/ToolVault/ and ensures proper React Router navigation.
- Update bundleLoader to use import.meta.env.BASE_URL for production paths
- Fix scriptLoader to load tool scripts from correct /ToolVault/ base path
- Ensures bundle metadata and tool scripts load correctly on GitHub Pages

This resolves the 'Error Loading Tools' issue where the bundle loader
was trying to fetch from wrong paths (/examples vs /ToolVault/examples).
…ction

- Add VITE_PREVIEW_MODE environment variable support
- Update bundleLoader, scriptLoader to handle preview vs production paths
- Fix Playwright test configuration for local testing
- Ensure proper base path handling for both localhost and GitHub Pages

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@IanMayo IanMayo merged commit 0985b44 into main Aug 21, 2025
2 checks passed
@IanMayo IanMayo deleted the phase-1-frontend branch August 21, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant