Introduction
This guide covers deploying Astro applications on Shard Cloud. Astro is a modern static site generator with optional server-side rendering.Creating Your Project
Ensure you have Node.js (16+) and npm installed.Creating a New Astro Project
Building Your Project
Build the production output:dist/ folder with static files.
Serving Your Astro Site
Static Sites (Default)
For static Astro sites, use serve:.shardcloud
SSR Mode
For server-side rendering with Node.js adapter:- Install the Node adapter:
- Configure
astro.config.mjs:
astro.config.mjs
- Shard Cloud config:
.shardcloud
Deploying
Upload to Shard Cloud
Go to Shard Cloud Dashboard and upload.
Additional Resources
Visit the official Astro documentation for more information.Troubleshooting
Build errors
Build errors
Check for component syntax errors and ensure all dependencies are installed.
SSR not working
SSR not working
Verify the Node adapter is properly configured and the output mode is set to ‘server’.
