prerender html and generate sitemap

This commit is contained in:
2026-06-03 20:19:00 +02:00
parent e30bb5927a
commit 48d0c4e47d
2 changed files with 28 additions and 16 deletions
+2
View File
@@ -1,2 +1,4 @@
export const HOST_URL = "https://chess-scribe.org";
export const GITHUB_URL =
"https://github.com/therealowenrees/chess-scribe-website";
+26 -16
View File
@@ -1,21 +1,31 @@
import { defineConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import tailwindcss from "@tailwindcss/vite";
import { devtools } from "@tanstack/devtools-vite";
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { nitro } from 'nitro/vite'
import viteReact from "@vitejs/plugin-react";
import { nitro } from "nitro/vite";
import { defineConfig } from "vite";
import { HOST_URL } from "#/config.ts";
const config = defineConfig({
resolve: { tsconfigPaths: true },
plugins: [
devtools(),
nitro({ rollupConfig: { external: [/^@sentry\//] } }),
tailwindcss(),
tanstackStart(),
viteReact(),
],
})
resolve: { tsconfigPaths: true },
plugins: [
devtools(),
nitro({ rollupConfig: { external: [/^@sentry\//] } }),
tailwindcss(),
tanstackStart({
prerender: {
enabled: true,
crawlLinks: true,
},
sitemap: {
enabled: true,
host: HOST_URL,
},
}),
viteReact(),
],
});
export default config
export default config;