Pagesmith.ai
P
  • Features
  • Pricing
  • Blog
  • Documentation
  • Contact
Start Building
Pagesmith.ai
P

From idea to stunning website in minutes. Just describe it, we'll build it.

All rights reserved.

Company
  • About Us
About
  • Blog
  • Contact
Product
  • Documentation
Legal
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Billing & Subscriptions
    • Plans & Pricing
  • Getting Started with PageSmith
    • Creating Your First Project
  • Using PageSmith
    • Using the AI Editor
    • Export
    • Publish
    • Using Custom Domains
    • Site Settings
    • Code Viewer
    • Version History
    • Database
  • Account & Authentication
    • Team Collaboration

Export

Learn how to export your PageSmith website code to GitHub.

PageSmith allows you to export your website code directly to a GitHub repository, giving you full ownership of your code.

GitHub Integration

Connect your GitHub account to export your website as a complete codebase.

Connecting GitHub

  1. Open your project in the AI Editor
  2. Go to Workspace → GitHub
  3. Click "Connect GitHub"
  4. Authorize PageSmith to access your GitHub account
  5. Select or create a repository for your project

Exporting Your Code

Once connected:

  1. Go to Workspace → GitHub
  2. Click "Export to GitHub"
  3. Your website code will be pushed to the connected repository

What Gets Exported

Your export includes:

  • Complete Next.js project - Production-ready React/Next.js application
  • All components - Every page and component you've built
  • Assets - Images, fonts, and other media files
  • Styling - Tailwind CSS configuration and styles
  • TypeScript support - Full type definitions included

Using Your Exported Code

After exporting, you can:

  • Clone the repository to your local machine
  • Customize the code further in your preferred editor
  • Deploy anywhere - Vercel, Netlify, or any Node.js host
  • Continue development with your own team

Deployment Options

Your exported Next.js project works with all major hosting platforms:

Recommended:

  • Vercel - One-click deployment from GitHub
  • Netlify - Automatic builds from Git

Other options:

  • Cloudflare Pages
  • AWS Amplify
  • DigitalOcean App Platform
  • Any Node.js hosting provider

Keeping Code in Sync

You can export multiple times to keep your GitHub repository updated with changes made in PageSmith. Each export will push the latest version of your site to the connected repository.

  1. GitHub Integration
    1. Connecting GitHub
    2. Exporting Your Code
    3. What Gets Exported
    4. Using Your Exported Code
    5. Deployment Options
    6. Keeping Code in Sync