# client-side-routing

Published articles for client-side-routing.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## When Static HTML and JavaScript Disagree About the Page URL

DevFeed: [When Static HTML and JavaScript Disagree About the Page URL](<https://devfeed.tech/articles/when-static-html-and-javascript-disagree-about-the-page-url-100887.md>)

Original publisher: [Read original article](<https://hackernoon.com/when-static-html-and-javascript-disagree-about-the-page-url?source=rss>)

Author: Keon Vrins

Published: 2026-10-26T20:50:11Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [client-side-routing](<https://devfeed.tech/tags/client-side-routing.md>), [html](<https://devfeed.tech/tags/html.md>), [index-html-redirects](<https://devfeed.tech/tags/index-html-redirects.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-route-resolver](<https://devfeed.tech/tags/javascript-route-resolver.md>), [netlify](<https://devfeed.tech/tags/netlify.md>), [netlify-redirects](<https://devfeed.tech/tags/netlify-redirects.md>), [route](<https://devfeed.tech/tags/route.md>), [routing](<https://devfeed.tech/tags/routing.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [static](<https://devfeed.tech/tags/static.md>), [static-site](<https://devfeed.tech/tags/static-site.md>), [static-site-routing](<https://devfeed.tech/tags/static-site-routing.md>), [static-website-debugging](<https://devfeed.tech/tags/static-website-debugging.md>), [tests](<https://devfeed.tech/tags/tests.md>), [url](<https://devfeed.tech/tags/url.md>), [url-normalization](<https://devfeed.tech/tags/url-normalization.md>)

### AI overview

A correct HTTP response can still render the wrong page when static hosting treats `/formation/index.html` as a file but client-side routing looks up directory-style paths. The example fixes this by normalizing the supported `index.html` alias in the route resolver, returning `null` for unknown routes, and adding a Netlify 301 rule for known aliases. A nine-case Node assertion check covers existing aliases and missing paths, but does not verify redirects, HTTP status, or rendered content. The recorded deployment checks separately found known aliases redirecting to their directory URLs, a query parameter preserved, and an unknown path returning 404. Final browser checks should open and reload the interior URL, inspect the final address and content against the initial HTML, and test an absent path. These observations describe the documented project, not other deployments.

### Source excerpt

Learn how to fix static site routing bugs where JavaScript displays the wrong page, using URL normalization, Netlify redirects, and route tests.

## 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.