Pre-rendering a Static route with Nitro

This commit is contained in:
2025-03-31 21:22:38 +02:00
parent 6d3da9874c
commit c4e6232462

View File

@@ -1,11 +1,16 @@
// app.config.ts
import { defineConfig } from '@tanstack/react-start/config'
import tsConfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from '@tanstack/react-start/config';
import tsConfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
tsr: {
appDirectory: 'src',
},
server: {
prerender: {
routes: ['/about'],
},
},
vite: {
plugins: [
tsConfigPaths({
@@ -13,4 +18,4 @@ export default defineConfig({
}),
],
},
})
});