Skip to main content

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

Select the Node.js server deployment target for Shard Cloud.

Basic Route Example

Create a route in app/routes/_index.tsx:
app/routes/_index.tsx

Building Your Project

Build the production output:

Shard Cloud Configuration

Create a .shardcloud file:
.shardcloud
Make sure your package.json has the start script configured for port 80:
package.json
Or configure the port in the start command:
.shardcloud

Deploying

1

Build Your Application

Run npm run build to verify the build works.
2

Prepare Your Files

Ensure you have:
  • app/ folder
  • package.json
  • .shardcloud
  • vite.config.ts or remix.config.js
3

Exclude Unnecessary Files

Remove: node_modules/, build/, package-lock.json
4

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

  • Check for TypeScript errors
  • Verify all route files are valid
Ensure you’re using port 80 as specified in the configuration.