Skip to content

v2.3.0

Latest
Compare
Choose a tag to compare
@rphlmr rphlmr released this 20 Dec 08:21
2e45d45

What's Changed

Pre-rendering

You should be able to use pre-rendering with this package.

Tip

Check this example to see how to use it.

Important

You need to add the serverBuildFile option to your react-router.config.ts file.

The file path is fixed to assets/server-build.js.

Add the prerender option to your react-router.config.ts

import type { Config } from "@react-router/dev/config";

export default {
  serverBuildFile: "assets/server-build.js", // 🚨 Dont forget this
  prerender: ["/"],
} satisfies Config;

Full Changelog: v2.2.1...v2.3.0