fix(website): add trailing slash to base path for WASM loading#373
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ed code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
BASE_URL was '/GoSQLX' without trailing slash, causing WASM paths to resolve as '/GoSQLXwasm/wasm_exec.js' instead of '/GoSQLX/wasm/wasm_exec.js'. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @ajitpratap0's task —— View job PR Review Complete ✅Reviewing this PR for code quality, best practices, potential issues, performance, and security concerns. Review Checklist:
✅ Core Fix AssessmentThe primary fix in base: '/GoSQLX/', // Fixed: was '/GoSQLX'Why this matters: Without the trailing slash, 📋 Code Quality ReviewExcellent ✅
Good ✅
🔒 Security AssessmentNo Issues Found ✅
⚡ Performance ConsiderationsWell Optimized ✅
Minor Optimization Opportunity
|
Summary
Fix WASM loading failure:
base: '/GoSQLX'→base: '/GoSQLX/'Without trailing slash,
import.meta.env.BASE_URL + 'wasm/wasm_exec.js'resolved to/GoSQLXwasm/wasm_exec.js(404). This broke the playground and hero playground on the live site.🤖 Generated with Claude Code