Remix hosting in 2026: how to deploy a Remix app with its server
A Remix app is a client folder and a server handler, so it cannot be published as plain files. Livops recognises Remix from package.json, runs the build, and starts remix-serve on the port it assigns.
By Livops team, the people who build and run LivopsUpdated
Remix builds the browser assets into build/client and a request handler into build/server. A shared static server can serve the first folder but cannot run the second. So a Remix app needs a process that stays up, started after the build. Livops reads your package.json, recognises Remix from @remix-run/react or @remix-run/dev, and sets the commands for you. You can change them in the cabinet or in a livops.json file.
The commands
Use these:
- build:
npm run build - start:
npx remix-serve ./build/server/index.js
Put @remix-run/serve (or the remix-serve package your project already uses) in your dependencies. Then npx runs that version and not whichever one it finds first.
React Router 7
A React Router 7 app in framework mode has the same two folders, because it is the same project shape under a new name. Its start command is npx react-router-serve ./build/server/index.js. The rest of this guide applies to it as well.
The port
Livops sets the PORT environment variable. remix-serve listens on it. Do not hard-code a port in your code, and do not change the start command to use a fixed one. A fixed port makes the app unreachable on Livops.
Set the health check path to /, or to a page that always answers. If the check fails, the app is restarted, so a slow or broken home page will look like a crash loop in the logs.
Environment variables
Put secrets and settings in the Variables section of the cabinet. Variables that start with PUBLIC_ are written into the browser bundle when it is built, so a change to one needs a new deploy. Other variables are read by the server at runtime, and a restart is enough.
Common mistakes
- Running
remix devorvite devin production. The dev server is for your laptop. The build and the start command are what Livops runs. - Setting the output to
build/clientand nothing else. The page loads, but every request that renders on the server fails, becausebuild/serveris missing from what the app needs. - A hard-coded port. Use
PORTfrom the environment. - No
remix-servein the project. The start command then depends on whatnpxfetches, and that can change from one deploy to the next.
If your app uses another framework, the same rule holds: a server app is paid by memory. For the other frameworks that share this shape see SvelteKit hosting and Nuxt hosting.
Questions
Can a Remix app run as a free static site on Livops?
No. A Remix build writes two folders. build/client holds the files a browser loads, and build/server holds the handler that renders each request. The handler needs a running process, so the app is a web app and is paid by the memory it uses.
Why does Livops start remix-serve with npx?
It runs the remix-serve that your project depends on, if there is one. Add it to your dependencies so the version that runs is the one you tested. Without it npx fetches whichever version it finds.
Which folder is the output for Remix?
The static assets are in build/client. The server entry that the start command runs is build/server/index.js. Do not set the output to build/client alone for a server app, because the server would be missing.
Sources
- Remix — Documentation (remix.run). Checked .
- Remix — @remix-run/serve (v2.remix.run). Checked .
Put your project online today
Connect GitHub or drop a folder. No card is asked for.
Deploy your Remix appRelated
- SvelteKit hosting in 2026: adapter-node, adapter-static or adapter-autoIn SvelteKit the adapter decides the hosting: adapter-static makes files any static host serves, adapter-node makes a Node server, and adapter-auto picks a serverless platform's own adapter. On Livops an adapter-static build is a free site, and an adapter-node build runs as a web app for 39 credits a month (39,000 so'm); adapter-auto is swapped for adapter-node in the build. Here is which to choose, and how Vercel, Netlify, Cloudflare and Render compare.
- Nuxt hosting in 2026: server-rendered or static, and where to run eachA Nuxt app is either a Node server that nuxt build makes, or a folder of pages that nuxt generate prerenders, and the host you need follows from which. On Livops the static build is a free site, and the server build runs as a web app for 39 credits a month (39,000 so'm); you choose when you import the repository. Here is how Vercel, Netlify, Cloudflare and Render compare.
- Next.js hosting without Vercel: the options comparedNext.js runs on any host that runs Node: next build, then next start, and every feature works, Server Actions and image optimization included. On Livops a repository with next in package.json runs as a server from a push for 39 credits a month (39,000 so'm), and a static export is free. Here is how Vercel, Render, Railway, Fly.io and a VPS compare.
- Node.js hosting in 2026: how to deploy an Express appA Node.js server in production needs one long-running process that listens on the port it is given, restarts when it crashes and exits cleanly on SIGTERM. On Livops you push a repository with package.json and it runs as a web app for 39 credits a month (39,000 so'm). Here is what Node needs, and how a VPS, Render, Railway, Fly.io, DigitalOcean and Heroku compare.
- App not listening on $PORT: why the health check failed after deployThe platform started your app, tried the port it gave it, and nothing answered in time. Almost always the app listens on its own fixed port instead of the PORT variable, listens on localhost (127.0.0.1) instead of 0.0.0.0, or crashed or was still starting when the check gave up. Listen on 0.0.0.0 and the port in PORT, and it passes.
- npm failed with return code 1 (npm ERR! code 1): how to fix the buildnpm failed with return code 1, or npm install exited with 1, is npm ERR! code 1 in newer npm: it only says that a script npm ran exited with code 1. The real error is printed above it: usually a compile or type error, a lockfile out of sync with package.json, or a dependency whose install script failed. Find the first error line above code 1, fix that, and the build passes.