Skip to content

Commit

Permalink
add env
Browse files Browse the repository at this point in the history
  • Loading branch information
KatieLisabeth committed Sep 27, 2024
1 parent 64ffcbb commit 25edcec
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lerna-debug.log*

node_modules
.DS_Store
.env
dist
dist-ssr
coverage
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"deploy": "npm run build && gh-pages -d dist"
},
"dependencies": {
"dotenv": "^16.4.5",
"pinia": "^2.1.7",
"vue": "^3.4.29",
"vue-i18n": "^10.0.3",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'node:url'

export default defineConfig({
base: '/portfolio/',
base: process.env.NODE_ENV === 'production' ? '/portfolio/' : '/',
plugins: [vue(), vueJsx()],
resolve: {
alias: {
Expand Down

0 comments on commit 25edcec

Please sign in to comment.