Merge pull request #497 from automatisch/BASE_URL_in_docs

chore(docs): accept BASE_URL as environment variable
This commit is contained in:
Ömer Faruk Aydın
2022-09-12 01:11:44 +03:00
committed by GitHub

View File

@@ -1,6 +1,9 @@
import { defineConfig } from 'vitepress'; import { defineConfig } from 'vitepress';
const BASE = process.env.BASE_URL || '/';
export default defineConfig({ export default defineConfig({
base: BASE,
lang: 'en-US', lang: 'en-US',
title: 'Automatisch Docs', title: 'Automatisch Docs',
description: 'Vite & Vue powered static site generator.', description: 'Vite & Vue powered static site generator.',