Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
THORSTEN SCHMINKEL committed Feb 11, 2024
1 parent ec5f499 commit 39d8c80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .example.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BASE_PATH=/react-shopping-cart-client-only/
VITE_BASE_PATH=/react-shopping-cart-client-only/
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Build project
run: npm run build
env:
BASE_PATH: ${{secrets.BASE_PATH}}
VITE_BASE_PATH: ${{secrets.VITE_BASE_PATH}}
- name: Upload production-ready build files
uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ dist-ssr
*.sw?

.env*.local

.env
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'vite'
import { defineConfig} from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
base: import.meta.env.BASE_PATH,
base: process.env.VITE_BASE_PATH,
plugins: [react()],
})

0 comments on commit 39d8c80

Please sign in to comment.