Introduction
This guide covers deploying Remix applications on Shard Cloud. Remix is a full-stack React framework with server-side rendering.Creating Your Project
Ensure you have Node.js (18+) and npm installed.Creating a New Remix Project
Basic Route Example
Create a route inapp/routes/_index.tsx:
app/routes/_index.tsx
Building Your Project
Build the production output:Shard Cloud Configuration
Create a.shardcloud file:
.shardcloud
package.json has the start script configured for port 80:
package.json
.shardcloud
Deploying
Prepare Your Files
Ensure you have:
app/folderpackage.json.shardcloudvite.config.tsorremix.config.js
Upload to Shard Cloud
Go to Shard Cloud Dashboard and upload.
Additional Resources
Visit the official Remix documentation for more information.Troubleshooting
Build fails
Build fails
- Check for TypeScript errors
- Verify all route files are valid
Port already in use
Port already in use
Ensure you’re using port 80 as specified in the configuration.
