Pre-rendering a Static route with Nitro
This commit is contained in:
@@ -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({
|
||||
}),
|
||||
],
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user