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
1
Build Your Application
Run
npm run build to verify the build works.2
Prepare Your Files
Ensure you have:
app/folderpackage.json.shardcloudvite.config.tsorremix.config.js
3
Exclude Unnecessary Files
Remove:
node_modules/, build/, package-lock.json4
Create ZIP Archive
Compress your project folder.
5
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.