Analysis updated 2026-07-10 · repo last pushed 2023-12-15
Fix page loading issues in a Nuxt.js app where a reverse proxy serves content at a different URL than the internal route.
Serve promotional content from your main site at a special URL without using a standard redirect.
Map an old web address to a new page in a Nuxt.js app while keeping the old URL visible to visitors.
| pi0/nuxt-rewrite | arata-ae/purupurupngtuber | codextf2/yamldeck | |
|---|---|---|---|
| Stars | 4 | 4 | 4 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2023-12-15 | — | — |
| Maintenance | Dormant | — | — |
| Setup difficulty | easy | moderate | easy |
| Complexity | 2/5 | 3/5 | 2/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an existing Nuxt.js app with server-level URL rewriting already configured, no benefit without a rewrite setup.
nuxt-rewrite is a module for Nuxt.js apps that fixes a specific problem caused by URL rewriting. When a server is configured to show users one web address while actually loading content from a different internal route, the page can break during the initial load. This tool prevents that breakage. When a web server rewrites a URL, it serves the content of one page at a different address. This breaks how modern JavaScript frameworks like Nuxt.js load pages on the client side, because the browser's internal router gets confused by the mismatch between the address shown and the content being loaded. This module solves the issue by briefly pretending to the router that the URL is the original internal one, just long enough to render the page. It then quickly reverts the address bar to the rewritten URL the user expects to see. This is for developers building Nuxt.js applications who use server-level rewriting, like setting up a reverse proxy. For example, a team might want to serve content from their main site at a special promotional URL, or map an old address to a new page without setting up a standard redirect. Without this module, doing that at the server level would cause the page to load incorrectly. The README notes a couple of important tradeoffs. First, having multiple addresses lead to the same content is bad for search engine optimization, so developers must use canonical meta-tags to tell search engines which address is the real one. Second, this rewriting only happens during the initial page load from the server. Any links within the app that need rewriting should use standard HTML link tags, which force a new server request, rather than relying on the app's internal navigation.
A Nuxt.js module that fixes page breakage caused by server-level URL rewriting, where a browser shows one address but loads content from another internal route. It briefly syncs the router to the real route during render, then restores the visible URL.
Mainly JavaScript. The stack also includes JavaScript, Nuxt.js, Vue Router.
Dormant — no commits in 2+ years (last push 2023-12-15).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.