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

View File

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