Lint index config

This commit is contained in:
Soitora 2023-08-08 21:10:59 +02:00
parent 4b1f7b27fc
commit 24f3f32c3b
No known key found for this signature in database
GPG Key ID: A6D711EB4F2CCD97

View File

@ -12,10 +12,10 @@ import generateFeed from "./hooks/generateFeed";
export default ({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
const baseUrl = process.env.VITE_HOSTNAME || "https://kodo.moe"
const basePath = process.env.VITE_BASE || "/"
const baseUrl = process.env.VITE_HOSTNAME || "https://kodo.moe";
const basePath = process.env.VITE_BASE || "/";
const hostname: string = baseUrl + basePath.replace(/\/$/, "")
const hostname: string = baseUrl + basePath.replace(/\/$/, "");
return defineConfig({
appearance: "dark",