import type { Config } from "@react-router/dev/config"; import { type Future, Route } from "react-router"; declare module "react-router" { interface Future { unstable_middleware: true; // 👈 Enable middleware types } //AppLoadContext is replaced with the ContextAPI enabled by the unstable_middlewares flag // interface AppLoadContext { // remove_me_i_am_a_test: string; // } } export default { // Config options... // Server-side render by default, to enable SPA mode set this to `false` ssr: true, future: { //TODO Keep up to date with the unstable releases over at https://reactrouter.com/changelog //See: https://github.com/remix-run/react-router/blob/release-next/decisions/0014-context-middleware.md unstable_middleware: true, }, } satisfies Config;