Framework hosting

Express hosting for static builds

Serve static assets generated by an Express project. StaticX is not a runtime for Express servers.

Publish Express public assets

StaticX can host the public folder or generated frontend files from an Express project.

Keep API routes on a server

Express route handlers, sessions, middleware, and database logic need a runtime host outside StaticX.

Split frontend releases cleanly

When the public assets change, publish them as a StaticX version while backend services remain separately deployed.

Host static files from an Express project

Separate the browser-facing assets from the Express runtime and deploy only the static folder.

Identify public files

Use the Express static folder or generated frontend build that contains files safe for visitors.

Exclude server code

Do not upload routes, middleware, private config, database code, or .env files.

Deploy frontend assets

Publish the public folder to StaticX and keep API URLs pointed at the real backend.

Express hosting means two different things.

If you mean “run my Express server,” StaticX is not the right runtime. If you mean “host the public assets from my Express project,” StaticX is a clean fit.

This split is useful when a marketing site or documentation frontend is static but still talks to an API hosted elsewhere.

Express static hosting boundaries

Public assets only

Upload files from express.static or a frontend build, not application internals.

Backend URLs

Configure frontend API calls to reach the deployed Express backend.

No sessions on StaticX

Session handling, auth callbacks, and database writes remain server responsibilities.

Questions about Express Hosting

Short, practical answers for using this page safely.

Can StaticX run Express middleware?

No. Express middleware needs a Node runtime. StaticX hosts static public files only.

Can I deploy an Express public folder?

Yes. Upload the browser-facing public folder if it contains the static site files visitors need.

What about Express API routes?

Keep them on a backend host and have the static frontend call those URLs.

Can Express projects still use StaticX domains?

Yes for the static frontend hosted on StaticX. Backend API domains are managed separately.