Enable sitemap and use overridable hostname

Also changes GitHub workflow to reflect recent changes
This commit is contained in:
Soitora 2023-08-08 20:06:00 +02:00
parent 77f8b9c581
commit 73a0604bef
No known key found for this signature in database
GPG Key ID: A6D711EB4F2CCD97
2 changed files with 7 additions and 6 deletions

View File

@ -8,6 +8,7 @@ on:
env: env:
VITE_BASE: /kodo/ VITE_BASE: /kodo/
VITE_HOSTNAME: https://xhenos.github.io
jobs: jobs:
deploy: deploy:
@ -34,7 +35,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 18
cache: npm cache: npm
cache-dependency-path: "**/package-lock.json" cache-dependency-path: "**/package-lock.json"

View File

@ -9,11 +9,11 @@ import "./icons";
import generateMeta from "./hooks/generateMeta"; import generateMeta from "./hooks/generateMeta";
import generateFeed from "./hooks/generateFeed"; import generateFeed from "./hooks/generateFeed";
const hostname: string = "https://kodo.moe";
export default ({ mode }) => { export default ({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) }; process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
const hostname: string = process.env.VITE_HOSTNAME || "https://kodo.moe";
return defineConfig({ return defineConfig({
appearance: "dark", appearance: "dark",
lastUpdated: true, lastUpdated: true,
@ -22,9 +22,9 @@ export default ({ mode }) => {
lang: "en-US", lang: "en-US",
title: "Tachiyomi", title: "Tachiyomi",
description: "Read your favorite manga, webtoons, comics, and more easier than ever on your Android.", description: "Read your favorite manga, webtoons, comics, and more easier than ever on your Android.",
/*sitemap: { sitemap: {
hostname: "https://kodo.moe", hostname: hostname,
},*/ },
head, head,
markdown, markdown,
themeConfig: themeConfig, themeConfig: themeConfig,