Skip to content

Commit

Permalink
chore: add base env to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Dec 28, 2024
1 parent 2e78aff commit 9e4057e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install and Build
run: |
pnpm i --frozen-lockfile
pnpm build --base=/docs-template/
BASE_URL=/docs-template/ pnpm build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import mdx from "@mdx-js/rollup";

// https://vite.dev/config/
export default defineConfig({
base: process.env.BASE_URL ?? "/",
plugins: [
preact({
prerender: {
Expand Down

0 comments on commit 9e4057e

Please sign in to comment.