Exporting & Deploying
Learn how to export your website code or deploy it live to the web.
Once your website is ready, PageSmith gives you multiple options to get it live on the web or download the code for self-hosting.
Quick Deploy (Recommended)
The fastest way to get your website live:
- Click "Publish" in the editor
- Choose a subdomain (e.g.,
yoursite.pagesmith.app
) - Click "Deploy Now"
- Your site is live in seconds!
Free Hosting Features
- Fast CDN - Global content delivery
- SSL Certificate - Automatic HTTPS
- Custom Subdomains -
yourname.pagesmith.app
- 99.9% Uptime - Reliable hosting
Custom Domain (Pro Plan)
Connect your own domain name:
- Go to Project Settings → Domain
- Enter your custom domain (e.g.,
www.example.com
) - Follow the DNS configuration instructions
- Wait for DNS propagation (up to 24 hours)
- Your site is live on your domain!
Supported Domains
- Top-level domains (.com, .org, .net, etc.)
- Subdomains (blog.example.com)
- International domains
- Multiple domains per project (Business plan)
Export Your Code
Download your website as clean, production-ready code:
Export Options
Static HTML/CSS/JS
- Perfect for simple websites
- Works on any web server
- No dependencies required
- Upload via FTP or hosting panel
Next.js Project
- Full React/Next.js application
- Includes all components and assets
- Deploy to Vercel, Netlify, or any Node.js host
- Customize the code further
React Components
- Individual component exports
- Use in existing React projects
- TypeScript support included
- Styled with Tailwind CSS
How to Export
- Open your project in the editor
- Click the menu → "Export"
- Choose your export format
- Download the ZIP file
- Extract and deploy to your hosting
Deployment Platforms
PageSmith code works with all major hosting platforms:
Static Site Hosts
- Netlify - Drag and drop deployment
- Vercel - Git-based deployments
- GitHub Pages - Free hosting for static sites
- AWS S3 - Scalable cloud storage
Traditional Hosting
- cPanel Hosting - Upload via File Manager or FTP
- Shared Hosting - Works on any Linux host
- VPS/Dedicated - Full control over environment
Specialized Platforms
- Cloudflare Pages - Fast global CDN
- DigitalOcean App Platform - Simple deployment
- Render - Automatic builds and deploys
Deploying to Vercel (Next.js)
For Next.js exports:
- Export your project as "Next.js Project"
- Extract the ZIP file
- Push to a GitHub repository:
git init git add . git commit -m "Initial commit" git remote add origin YOUR_REPO_URL git push -u origin main
- Connect to Vercel:
- Visit vercel.com
- Click "Import Project"
- Select your GitHub repository
- Click "Deploy"
Your site will be live in minutes!
Deploying to Netlify (Static)
For static HTML exports:
- Export your project as "Static HTML/CSS/JS"
- Extract the ZIP file
- Visit netlify.com
- Drag the extracted folder to the Netlify drop zone
- Your site is deployed!
Continuous Deployment
For automatic updates:
- Push your code to GitHub
- Connect Netlify to your repository
- Every push automatically redeploys
FTP Upload (Traditional Hosting)
For cPanel or traditional shared hosting:
- Export as "Static HTML/CSS/JS"
- Connect via FTP client (FileZilla, Cyberduck)
- Upload all files to
public_html
orwww
directory - Your site is live at your domain!
Common FTP Settings
- Host: ftp.yourdomain.com
- Username: Your hosting username
- Password: Your hosting password
- Port: 21 (standard) or 22 (SFTP)
Environment Variables
For Next.js projects with dynamic features:
Configure these in your hosting platform:
# Required for forms NEXT_PUBLIC_FORM_ENDPOINT=your-form-api-endpoint # Optional analytics NEXT_PUBLIC_GA_ID=your-google-analytics-id
SSL/HTTPS
All deployments should use HTTPS:
PageSmith Hosting
- Automatic SSL certificates
- No configuration needed
Custom Domains
- Free SSL via Let's Encrypt
- Auto-renewal
Third-Party Hosts
- Netlify/Vercel: Automatic SSL
- Traditional hosts: Enable in cPanel
- Manual: Use Certbot for Let's Encrypt
Testing Before Going Live
Always test your deployed site:
- Check all pages - Navigate through your site
- Test forms - Ensure form submissions work
- Mobile testing - View on actual devices
- Performance - Use PageSpeed Insights
- Links - Verify all internal and external links
- Images - Confirm all images load properly
Updating Your Live Site
PageSmith Hosted
- Make changes in the editor
- Click "Publish" again
- Changes are live immediately
Self-Hosted
- Make changes in the editor
- Re-export your project
- Upload/deploy the updated files
Troubleshooting
Site Not Loading
- Check DNS settings (custom domains)
- Verify hosting account is active
- Clear browser cache
- Check for SSL certificate errors
Images Not Showing
- Ensure images are included in export
- Check file paths are correct
- Verify images were uploaded to host
Forms Not Working
- Configure form endpoint
- Check API keys in environment variables
- Test with form debugging enabled
Next Steps
After deploying:
- Set up analytics to track visitors
- Configure SEO settings
- Submit sitemap to Google Search Console
- Monitor performance and uptime