# Share your slop with the Static Hosting Component!

DevFeed: [Share your slop with the Static Hosting Component!](<https://devfeed.tech/articles/share-your-slop-with-the-static-hosting-component-113335.md>)

Original publisher: [Read original article](<https://stack.convex.dev/static-hosting-component>)

Author: Stack

Published: 2026-06-23T16:00:03Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [hosting](<https://devfeed.tech/topics/hosting.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [backend](<https://devfeed.tech/tags/backend.md>), [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cli](<https://devfeed.tech/tags/cli.md>), [client-side-routing](<https://devfeed.tech/tags/client-side-routing.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [codex](<https://devfeed.tech/tags/codex.md>), [command](<https://devfeed.tech/tags/command.md>), [commands](<https://devfeed.tech/tags/commands.md>), [component](<https://devfeed.tech/tags/component.md>), [components](<https://devfeed.tech/tags/components.md>), [convex](<https://devfeed.tech/tags/convex.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [share](<https://devfeed.tech/tags/share.md>), [slop](<https://devfeed.tech/tags/slop.md>), [static](<https://devfeed.tech/tags/static.md>), [tips](<https://devfeed.tech/tags/tips.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

The Static Hosting Component serves a built frontend from Convex, making small apps easy to publish with the project's existing CLI workflow. Install and set it up with `npm install @convex-dev/static-hosting` and `npx @convex-dev/static-hosting setup`, run `npx convex dev`, then deploy with `npm run deploy`; the site is available at a `convex.site` URL. `upload --build` targets the development deployment, while `deploy` builds with the production Convex URL, deploys the backend, and uploads files to production. Uploads require Convex CLI authentication, and assets are stored in Convex file storage and served through an HTTP action. Existing HTTP routes can be moved under `/api`, registered before static routes, or kept intact by mounting the site under a path. Client-side routing works with the default SPA fallback; `--no-spa` enables real 404s. Next.js requires static export, which excludes server rendering and server actions. The author cautions that file accesses count as function calls and bandwidth, so the component suits small apps; larger sites may be better served by Vercel or Netlify. It does not provide hot reloading.

## Source excerpt

Every time I want to show someone something I've built I get this sinking feeling, because I know a third party hosting dashboard is coming. The Static Hosting Component lets you put your frontend on Convex itself with one command instead, so here's how it works and a few tips I've picked up.