mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-20 23:22:00 +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 }) => {
|
||||
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({
|
||||
appearance: "dark",
|
||||
|
Loading…
Reference in New Issue
Block a user