Skip to content

Search the guides, deployment pages, and API reference.

@pitlane/vite-plugin-remix

The remix() Vite plugin — Remix 3 build orchestration, the clientEntry() island identity transform, dev serving through the app's fetch handler, hot module replacement for components and server-rendered data, prerendering, and a preview server, for any Vite or Vite+ project.

See

Interfaces

  • PrerenderConfig. The object form of the prerender option: which paths to render, plus how many to render at once and whether to follow the links they contain.
  • PrerenderContext. What a prerender function receives.
  • RemixPluginOptions. The options remix accepts. Every one has a default, and most projects pass none.

Type Aliases

  • PrerenderOption. Everything remix({ prerender }) accepts: true for every static path in the route map, false for none, an explicit path list, a function that computes one, or a PrerenderConfig that adds concurrency and spider.
  • PrerenderPaths. A function that decides which paths to prerender, for path sets that need async work — a CMS query, a filesystem scan, a database read.
  • PrerenderPathsOption. The paths to prerender: true for every static path in the route map, an explicit list, or a function that computes one.

Functions

  • remix. Wires Remix 3 into a Vite or Vite+ project: multi-environment builds (dist/ssr + dist/client) with an asset manifest for createAssetResolver(), portable clientEntry(import.meta.url, …) island identities that render({ assets }) resolves, dev serving through the app's fetch handler, prerendering, and a preview server for the production build.