Skip to content

Commit

Permalink
added publicPath for GH action deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtommetcalfe committed Jun 28, 2024
1 parent aaa1f52 commit b56f831
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { VitePWA } from 'vite-plugin-pwa'

const basePath = process.env.NODE_ENV === 'production'
? '/website/'
: '/';

// https://vitejs.dev/config/
export default defineConfig({
publicPath: basePath,
plugins: [
vue(),
VitePWA()
Expand Down

0 comments on commit b56f831

Please sign in to comment.