mysite
Built with Liteshow - AI-first, SEO-optimized, Git-powered CMS
Deploy Your Site
This is a static Astro site that works on any hosting platform. Choose your preferred platform below.
π GitHub Pages (Recommended)
Natively supported by Liteshow with 1-click deployment!
Your site is already configured for GitHub Pages deployment via GitHub Actions. Simply:
- Go to your Liteshow project dashboard
- Navigate to the Deployment tab
- Click Deploy Now
Liteshow will automatically:
- β Enable GitHub Pages for your repository
- β Trigger the deployment workflow
- β Build and publish your site
- β Provide you with a live URL
Your site will be live at: https://<username>.github.io/<repo-name>/
Custom Domains: You can configure a custom domain in your project's Deployment settings. See the Custom Domain Setup section below for detailed instructions.
β‘ Vercel
- Click the deploy button above OR go to Vercel
- Import this repository from GitHub
- Vercel will auto-detect settings:
- Framework: Astro
- Build command:
npm install && npm run build - Output directory:
dist
- Add environment variables (see below)
- Click Deploy
π¦ Netlify
- Click the deploy button above OR go to Netlify
- Import this repository from GitHub
- Netlify will auto-detect settings:
- Build command:
npm install && npm run build - Publish directory:
dist
- Build command:
- Add environment variables (see below)
- Click Deploy site
π Other Platforms
This static site also works on:
- Cloudflare Pages - Auto-detects Astro
- AWS S3 + CloudFront - Upload
dist/folder - Any static host - Just upload the
dist/folder
π Custom Domain Setup
Use your own domain (e.g., www.yourdomain.com) instead of the default GitHub Pages URL.
How It Works
When you configure a custom domain in Liteshow:
- Liteshow updates your project - Sets
BASE_PATHto/(instead of/repo-name/) - You configure DNS - Point your domain to GitHub Pages servers
- You configure GitHub Pages - Add CNAME file or use GitHub UI
- GitHub handles SSL - Automatic HTTPS certificate via Let's Encrypt
- Your site is live - Accessible at your custom domain
Step 1: Configure Domain in Liteshow
- Go to your project in the Liteshow dashboard
- Navigate to Deployment β Settings
- Enter your custom domain (e.g.,
www.yourdomain.comorblog.yourdomain.com) - Save settings
- Deploy your site (Liteshow will automatically configure
BASE_PATHfor custom domain)
Step 2: Configure DNS Records
Add DNS records with your domain registrar (GoDaddy, Namecheap, Cloudflare, etc.):
For subdomain (recommended): www.yourdomain.com or blog.yourdomain.com
| Type | Name | Value | TTL |
|---|---|---|---|
| CNAME | www | <username>.github.io | 3600 |
For apex/root domain: yourdomain.com
| Type | Name | Value | TTL |
|---|---|---|---|
| A | @ | 185.199.108.153 | 3600 |
| A | @ | 185.199.109.153 | 3600 |
| A | @ | 185.199.110.153 | 3600 |
| A | @ | 185.199.111.153 | 3600 |
For both apex and www (best practice):
Set up both records above, then also add:
| Type | Name | Value | TTL |
|---|---|---|---|
| CNAME | www | yourdomain.com | 3600 |
Note: DNS propagation can take 24-48 hours, but usually completes within a few hours.
Step 3: Configure GitHub Pages
Option A: Via GitHub UI (Easier)
- Go to your repository on GitHub
- Click Settings β Pages
- Under "Custom domain", enter your domain:
www.yourdomain.com - Click Save
- Wait for DNS check to complete (green checkmark)
- Enable Enforce HTTPS (recommended)
Option B: Via CNAME File (Alternative)
- Create a file named
CNAME(no extension) in thepublic/folder of your repository - Add a single line with your domain:
www.yourdomain.com - Commit and push to GitHub
- The next deployment will use your custom domain
Step 4: Verify & Enable HTTPS
- Wait for DNS propagation (check with
nslookup www.yourdomain.com) - GitHub will automatically provision an SSL certificate (takes a few minutes)
- Your site will be accessible via HTTPS at your custom domain
Technical Details
Path Handling:
- Default GitHub Pages:
BASE_PATH=/repo-name/β All URLs are prefixed (e.g.,/repo-name/about) - Custom Domain:
BASE_PATH=/β Clean URLs (e.g.,/about)
Liteshow automatically configures this when you set a custom domain.
SSL/HTTPS:
- GitHub Pages provides free SSL certificates via Let's Encrypt
- Automatic renewal
- Enforced HTTPS redirect (when enabled)
DNS Records Explained:
- CNAME - Alias pointing to another domain (subdomain only)
- A Record - Direct IP address mapping (apex/root domain)
- GitHub's A record IPs are static and maintained by GitHub
Troubleshooting
DNS not propagating:
- Check DNS with:
nslookup www.yourdomain.com - Wait 24-48 hours for full propagation
- Try flushing DNS cache:
ipconfig /flushdns(Windows) orsudo dscacheutil -flushcache(macOS)
"Domain's DNS record could not be retrieved" error:
- Verify DNS records are correct
- Wait for DNS propagation
- Check with:
dig www.yourdomain.comornslookup www.yourdomain.com
Site not loading on custom domain:
- Verify CNAME file exists (Option B) or GitHub Pages setting is correct (Option A)
- Check that you deployed after configuring the custom domain in Liteshow
- Ensure DNS records point to correct GitHub Pages servers
SSL certificate not provisioning:
- Can take up to 24 hours after DNS propagation
- Ensure DNS is fully propagated first
- Check GitHub Pages settings show "HTTPS available"
404 errors on custom domain:
- Ensure you redeployed after setting custom domain in Liteshow
- Verify
BASE_PATHis set to/(check GitHub Actions secrets:BASE_PATH) - Check that pages are published in Liteshow dashboard
Resources
Environment Variables
For GitHub Pages: Environment variables are automatically configured by Liteshow. No manual setup needed!
For other platforms: Add these in your deployment platform's dashboard:
| Variable | Value | Description |
|---|---|---|
PUBLIC_API_URL | Your Liteshow API URL | Contact Liteshow support for your API URL |
Local Development
# Install dependencies
npm install
# Start dev server
npm run devVisit http://localhost:4321
Note: When running locally, the site fetches content from your Liteshow project's API. Make sure your content is published in the Liteshow dashboard.
How It Works
This Astro site fetches your published content from the Liteshow API at build time. The workflow is simple:
- Create/edit content in Liteshow dashboard
- Publish your pages when ready
- Deploy from the Deployment tab (GitHub Pages) or push to your main branch
- Live! Your site is rebuilt with the latest content
Content is fetched securely from your project's database via the Liteshow API.
Project Structure
/
βββ .github/
β βββ workflows/
β βββ deploy.yml # GitHub Pages deployment
βββ src/
β βββ components/
β β βββ blocks/ # Content block components
β βββ layouts/
β β βββ BaseLayout.astro
β βββ lib/
β β βββ content-api.ts # Liteshow API client
β βββ pages/
β βββ index.astro # Home page
β βββ [slug].astro # Dynamic pages
β βββ 404.astro # Not found page
βββ astro.config.mjs
βββ package.jsonSupport
Need help? Visit liteshow.io/docs or contact support at support@liteshow.io