- Push your portfolio code to GitHub
- Ensure all files are committed and pushed
- Log in to Cloudflare Dashboard
- Go to "Pages" section
- Click "Create a project"
- Select "Connect to Git"
- Choose your GitHub repository
Use these exact settings:
Framework preset: Next.js (Static HTML Export)
Build command: npm run build
Build output directory: out
Root directory: / (leave empty if repo root)
Environment Variables: None required
- Click "Save and Deploy"
- Wait for build to complete (~2-3 minutes)
- Your portfolio will be live at
https://your-project.pages.dev
- Go to your project's "Custom domains" tab
- Click "Set up a custom domain"
- Enter your domain name
- Follow DNS configuration instructions
# Install Wrangler
npm install -g wrangler
# Login to Cloudflare
wrangler login
# Build the project
npm run build
# Deploy
wrangler pages publish out- Build the project:
npm run build - Go to Cloudflare Pages dashboard
- Click "Upload assets"
- Upload the entire
outfolder
npm run build
npm run startnpm run build
npx http-server outnpm run build
wrangler pages dev out- Check Node.js version (18+ required)
- Clear node_modules:
rm -rf node_modules && npm install - Check for TypeScript errors:
npm run lint
- Ensure images are in
public/images/directory - Check image paths in components
- Verify image formats are web-compatible
- Check Tailwind CSS configuration
- Verify PostCSS setup
- Clear
.nextcache:rm -rf .next
- Check Framer Motion version compatibility
- Verify animation props in components
- Test in different browsers
- Run
npm run buildsuccessfully - Test on mobile devices
- Verify all links work
- Check image optimization
- Test form submissions
- Validate SEO meta tags
- Test live URL in multiple browsers
- Run Lighthouse audit
- Check Core Web Vitals
- Verify analytics (if added)
- Update dependencies monthly
- Check for security vulnerabilities
- Update content as needed
- Monitor performance metrics
- Personal information: Update in respective components
- Projects: Modify
components/Projects.tsx - Skills: Update
components/Skills.tsx - Architecture diagrams: Replace in
public/images/
If you encounter issues:
- Check the Cloudflare Pages documentation
- Review build logs for specific errors
- Test locally before deploying
- Contact: dpk.srm.fbg@gmail.com