mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-11-01 07:25:06 +01:00
Support base directory in sitemap
This commit is contained in:
parent
7d67ff8b73
commit
b253030242
@ -12,7 +12,10 @@ import generateFeed from "./hooks/generateFeed";
|
|||||||
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";
|
const baseUrl = process.env.VITE_HOSTNAME || "https://kodo.moe"
|
||||||
|
const basePath = process.env.VITE_BASE || "/"
|
||||||
|
|
||||||
|
const hostname: string = baseUrl + basePath.replace(/\/$/, "")
|
||||||
|
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
appearance: "dark",
|
appearance: "dark",
|
||||||
|
Loading…
Reference in New Issue
Block a user