Back to Tutorials
30 min
Intermediate
Deploying Your Project
Export your Structor project and deploy it to production. Learn about static exports, hosting options, domain configuration, and best practices for deployment.
Introduction
Once you've built your project in Structor, it's time to share it with the world! In this tutorial, you'll learn how to export your project and deploy it to various hosting platforms.
Step 1: Prepare Your Project
1.1 Final Checks
- Test all functionality in Preview mode
- Check responsive design on different screen sizes
- Ensure all images and assets are loaded correctly
- Test all actions and interactions
- Fix any errors or issues
1.2 Commit Your Work
- Make sure all changes are committed
- Create a final commit: "Ready for deployment"
- Verify no unsaved changes (no gray dot in top bar)
Step 2: Export Your Project
- In the builder, click the Deploy button in the top bar
- The Deploy dialog will open
- Select Export Static option
- Choose export settings:
- Include assets: Yes (includes all images and files)
- Optimize for production: Yes
- Click Export
- Wait for the export to complete
- Your project will be downloaded as a ZIP file
Step 3: Deploy to Vercel
3.1 Upload to Vercel
- Extract the exported ZIP file
- Go to vercel.com
- Sign up or log in
- Click Add New Project
- Drag and drop your exported folder
- Vercel will detect it's a static site
- Click Deploy
- Wait for deployment to complete
- Your site will have a URL like:
your-project.vercel.app
Step 4: Deploy to Netlify
- Go to netlify.com
- Sign up or log in
- Drag and drop your exported folder onto the Netlify dashboard
- Netlify will automatically deploy it
- You'll get a URL like:
random-name.netlify.app
Step 5: Deploy to Cloudflare Pages
- Go to pages.cloudflare.com
- Sign in with your Cloudflare account
- Click Create a project
- Upload your exported folder
- Set build settings (usually not needed for static exports)
- Click Deploy site
Step 6: Configure Custom Domain
6.1 In Vercel
- Go to your project settings
- Navigate to Domains
- Add your custom domain
- Follow DNS configuration instructions
6.2 In Netlify
- Go to Domain settings
- Click Add custom domain
- Enter your domain
- Configure DNS as instructed
Step 7: Performance Optimization
- Image Optimization: Ensure images are properly sized before uploading
- Code Splitting: Structor automatically optimizes code
- Caching: Hosting platforms usually handle this automatically
- Compression: Enable gzip/brotli compression (usually automatic)
Step 8: SEO Best Practices
- In Structor settings, configure:
- Page Title: Descriptive title for search engines
- Meta Description: Brief description of your site
- Open Graph Tags: For social media sharing
- Ensure all images have alt text
- Use semantic HTML (Structor does this automatically)
- Create a sitemap (some platforms do this automatically)
Step 9: Continuous Deployment (Optional)
For automatic deployments when you make changes:
- Push your exported code to a Git repository (GitHub, GitLab, etc.)
- Connect your repository to your hosting platform
- Configure automatic deployments
- Every time you push changes, the site will redeploy automatically
Congratulations!
You've learned how to:
- Prepare your project for deployment
- Export your project
- Deploy to various hosting platforms
- Configure custom domains
- Optimize for performance and SEO
Next Steps
- Monitor your site's performance and analytics
- Set up custom domains and SSL certificates
- Configure environment variables if needed
- Set up monitoring and error tracking