Skip to content

Commit

Permalink
creating staging mode for netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
cweitat committed Sep 4, 2023
1 parent 496e732 commit 88f5bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"dev": "vite",
"build:staging": "vite build --mode staging",
"build": "vite build",
"preview": "vite preview --port 8080 --host",
"test:unit": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion src/stores/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defaults, mande } from 'mande'
import { defineStore } from 'pinia'

export const useApiStore = defineStore('api', () => {
const apiUrl = import.meta.env.PROD
const apiUrl = import.meta.env.MODE === 'production'
? import.meta.env.VITE_PROD_API_URL
: import.meta.env.VITE_TEST_API_URL
let instance = mande(apiUrl)
Expand Down

0 comments on commit 88f5bbb

Please sign in to comment.