This documentation site is configured for automatic deployment to GitHub Pages.
The site is automatically deployed to GitHub Pages when changes are pushed to the production branch.
Deployment URL: https://[username].github.io/docs
- GitHub Pages Enabled: Ensure GitHub Pages is enabled in your repository settings
- Branch Protection: The
productionbranch should be protected - GitHub Actions: Ensure GitHub Actions are enabled for the repository
To manually trigger a deployment:
-
Build locally:
npm run deploy:pages
-
Push to production branch:
git add . git commit -m "feat(deploy): update documentation site" git push origin production
-
Monitor deployment:
- Check the GitHub Actions tab in your repository
- Look for the "Deploy Next.js site to Pages" workflow
The site is configured with the following settings for GitHub Pages:
- Static Export: Enabled (
output: 'export') - Base Path:
/docs(for repository name) - Trailing Slash: Enabled for better compatibility
- Image Optimization: Disabled (required for static export)
-
Build Failures:
- Check GitHub Actions logs for specific errors
- Ensure all dependencies are properly installed
- Verify TypeScript compilation passes
-
404 Errors:
- Ensure
basePathis correctly set to/docs - Check that all internal links use the correct base path
- Verify the
outdirectory is generated correctly
- Ensure
-
Styling Issues:
- Ensure CSS is properly bundled
- Check that static assets are in the correct location
- Verify image paths are correct
-
Local Build Test:
npm run build npm run start
-
Check Build Output:
ls -la out/
-
Verify Configuration:
- Check
next.config.jsfor correct settings - Ensure
.nojekyllfile exists inpublic/ - Verify GitHub Actions workflow is correct
- Check
- Deployment Status: Check GitHub Actions for deployment status
- Site Performance: Use browser dev tools to monitor loading times
- Error Tracking: Monitor browser console for any JavaScript errors
- Make changes to documentation
- Test locally:
npm run dev - Build and test:
npm run deploy:pages - Commit and push to
productionbranch - Monitor GitHub Actions deployment
- Verify changes on live site
- All deployments go through GitHub Actions with proper permissions
- Static export ensures no server-side vulnerabilities
- Security headers are configured in
next.config.js - No sensitive data is exposed in the build output