Documentation menu

Deploy Remix on Light Cloud - detected from the Remix dependencies, served by its Node server in a container behind the edge CDN.

Deploy Remix

Remix is detected from its dependencies and config, and runs as a Node.js container on port 3000. The generated image builds the app and runs remix-serve (or your start script) on Node 22; a repo with its own server file or Dockerfile is used as written.

How it runs#

Remix is a server-rendered frontend, so it runs under the SSR policy: pinned to the Micro size, scaling 0-3, in a tier-1 region, always behind the edge CDN. Loaders and actions execute on the origin; the edge serves what can be cached.

  • Build. npm run build produces the server and client bundles.
  • Port. remix-serve and the common Express setups respect PORT, which is set for you.

Configuration#

Loaders and actions read environment variables from process.env at runtime, per environment. Anything that must reach the browser goes through a loader - Remix has no build-time public prefix, which fits the container rule: images are built without your runtime variables.

Database#

Provision managed PostgreSQL or MySQL and read DATABASE_URL in your loaders' data layer. See Connect an app.