Skip to content

Commit

Permalink
Set base url for pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Jan 7, 2024
1 parent 57c2cd7 commit c5add2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- run: pnpm verify
- if: github.ref == 'refs/heads/main'
run: pnpm build
env:
BASE_URL: /tech-radar
- if: github.ref == 'refs/heads/main'
name: Upload page
uses: actions/upload-pages-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import legacy from "@vitejs/plugin-legacy"
import { defineConfig } from "vite"

export default defineConfig({
base: process.env.BASE_URL || "",
plugins: [
legacy({
targets: ["defaults", "not IE 11"],
Expand Down

0 comments on commit c5add2c

Please sign in to comment.