mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
prerender html and generate sitemap
This commit is contained in:
@@ -1,2 +1,4 @@
|
|||||||
|
export const HOST_URL = "https://chess-scribe.org";
|
||||||
|
|
||||||
export const GITHUB_URL =
|
export const GITHUB_URL =
|
||||||
"https://github.com/therealowenrees/chess-scribe-website";
|
"https://github.com/therealowenrees/chess-scribe-website";
|
||||||
|
|||||||
+26
-16
@@ -1,21 +1,31 @@
|
|||||||
import { defineConfig } from 'vite'
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
import { devtools } from '@tanstack/devtools-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 viteReact from "@vitejs/plugin-react";
|
||||||
import tailwindcss from '@tailwindcss/vite'
|
import { nitro } from "nitro/vite";
|
||||||
import { nitro } from 'nitro/vite'
|
import { defineConfig } from "vite";
|
||||||
|
import { HOST_URL } from "#/config.ts";
|
||||||
|
|
||||||
const config = defineConfig({
|
const config = defineConfig({
|
||||||
resolve: { tsconfigPaths: true },
|
resolve: { tsconfigPaths: true },
|
||||||
plugins: [
|
plugins: [
|
||||||
devtools(),
|
devtools(),
|
||||||
nitro({ rollupConfig: { external: [/^@sentry\//] } }),
|
nitro({ rollupConfig: { external: [/^@sentry\//] } }),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
tanstackStart(),
|
tanstackStart({
|
||||||
viteReact(),
|
prerender: {
|
||||||
],
|
enabled: true,
|
||||||
})
|
crawlLinks: true,
|
||||||
|
},
|
||||||
|
sitemap: {
|
||||||
|
enabled: true,
|
||||||
|
host: HOST_URL,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
viteReact(),
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
export default config
|
export default config;
|
||||||
|
|||||||
Reference in New Issue
Block a user