Pre-rendering a Static route with Nitro
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
// app.config.ts
|
// app.config.ts
|
||||||
import { defineConfig } from '@tanstack/react-start/config'
|
import { defineConfig } from '@tanstack/react-start/config';
|
||||||
import tsConfigPaths from 'vite-tsconfig-paths'
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
tsr: {
|
tsr: {
|
||||||
appDirectory: 'src',
|
appDirectory: 'src',
|
||||||
},
|
},
|
||||||
|
server: {
|
||||||
|
prerender: {
|
||||||
|
routes: ['/about'],
|
||||||
|
},
|
||||||
|
},
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [
|
plugins: [
|
||||||
tsConfigPaths({
|
tsConfigPaths({
|
||||||
@@ -13,4 +18,4 @@ export default defineConfig({
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
})
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user