Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-deploy-pages:
build-and-deploy-pages:
runs-on: ubuntu-latest
environment:
name: github-pages
Expand All @@ -47,13 +47,15 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
env:
NODE_ENV: production
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './dist'
path: './frontend/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { defineConfig } from "vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
base: process.env.NODE_ENV === "production" ? "/mock-mapping-frontend/" : "/",
server: {
hmr: true, // Automatically refresh/reload the page behind the scenes to reflect code changes.
},
Expand Down
Loading