TanStackT
TanStack8mo ago
15 replies
uncertain-scarlet

SSR and Static Generation In latest Version? 1.121

Since updating to this version, it seems we have ditched
app.config.ts
in favoure of a vite.config.ts

However, all of the commented stuff is now invalid and doesn't work:

import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";

export default defineConfig({
  // tsr: {
  //   appDirectory: "app",
  // },
  server: {
    // preset: "bun",
    // prerender: {
    //   routes: ["/", "/cv"],
    //   crawlLinks: true,
    // },
  },
  plugins: [
    tsConfigPaths({
      projects: ["./tsconfig.json"],
    }),
    tailwindcss(),
  ],
});


Also in my ssr.tx I have errors like:

Cannot find module '@tanstack/react-start/router-manifest' or its corresponding type declarations. (ts 2307)


Also the SSR page is a 404:

https://tanstack.com/start/latest/docs/framework/react/ssr
Was this page helpful?