[TanStack Start] Where to put config options for tanstack router in a tanstack start app? #4989
-
Hi guys! Im having a hard time finding the location of config options for tanstack router in a tanstack start app since the router plugin is not in the vite config. I also cant find configuration options for router inside the tanstack start plugin. I tried importing the tanstack router plugin but i get errors since it does not recognize functions like heres my config import { defineConfig } from "vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import { tanstackRouter } from '@tanstack/router-plugin/vite'
import viteReact from "@vitejs/plugin-react";
import viteTsConfigPaths from "vite-tsconfig-paths";
import tailwindcss from "@tailwindcss/vite";
const config = defineConfig({
plugins: [
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tailwindcss(),
tanstackRouter({
routeToken: "layout",
}),
tanstackStart({
customViteReactPlugin: true,
}),
viteReact(),
],
});
export default config; I like to set the Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
it's under the |
Beta Was this translation helpful? Give feedback.
it's under the
tsr
key intanstackStart
plugin. subject to change as this is not easily discoverable