mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-10-31 23:15:05 +01:00
Attempt to get active Netlify url as hostname
This commit is contained in:
parent
77a423d8e0
commit
6f1a88bc00
@ -4,4 +4,9 @@
|
|||||||
[build]
|
[build]
|
||||||
base = "website"
|
base = "website"
|
||||||
publish = "src/.vitepress/dist"
|
publish = "src/.vitepress/dist"
|
||||||
command = "pnpm build"
|
|
||||||
|
[context.production]
|
||||||
|
command = "VITE_HOSTNAME=$URL pnpm build"
|
||||||
|
|
||||||
|
[context.deploy-preview]
|
||||||
|
command = "VITE_HOSTNAME=$DEPLOY_PRIME_URL pnpm build"
|
@ -1,4 +1,4 @@
|
|||||||
import { defineConfig } from "vitepress";
|
import { defineConfig, loadEnv } from "vitepress";
|
||||||
|
|
||||||
import markdownConfig from "./config/markdownConfig"; // For use with loading Markdown plugins
|
import markdownConfig from "./config/markdownConfig"; // For use with loading Markdown plugins
|
||||||
import themeConfig from "./config/themeConfig"; // Theme related config
|
import themeConfig from "./config/themeConfig"; // Theme related config
|
||||||
@ -10,7 +10,9 @@ import generateOgImages from "./config/hooks/generateOgImages";
|
|||||||
|
|
||||||
const title = "Tachiyomi";
|
const title = "Tachiyomi";
|
||||||
const description = "Read your favorite manga, webtoons, comics, and more – easier than ever on your Android.";
|
const description = "Read your favorite manga, webtoons, comics, and more – easier than ever on your Android.";
|
||||||
const hostname: string = "https://kodo.moe";
|
|
||||||
|
const env = loadEnv("", process.cwd())
|
||||||
|
const hostname: string = env.VITE_HOSTNAME || "http://localhost:4173";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user