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