Skip to content

Commit

Permalink
misc: optimize env managing
Browse files Browse the repository at this point in the history
  • Loading branch information
jinho-choi123 committed Nov 3, 2023
1 parent 2cb99f1 commit fafdbd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## VITE_API_SERVER_URL should end with "/"
VITE_API_SERVER_URL=
VITE_ANIMATION_DURATION=
VITE_TRANSITION_INTERVAL=
VITE_ZABO_SHARE_URL=
VITE_TRANSITION_INTERVAL=
2 changes: 1 addition & 1 deletion src/redux/zabos/fetchZaboThunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { AppDispatch } from "@/redux/store";
import { ZaboState, type ZaboJson } from "@/types";
import { pushZabos } from "./zaboSlice";

const ZABO_SHARE_URL = import.meta.env.VITE_ZABO_SHARE_URL;
const ZABO_SHARE_URL = "".concat(import.meta.env.VITE_API_SERVER_URL, "s/");

export const fetchZaboThunk = () => async (dispatch: AppDispatch) => {
// attach timestamp to image url to prevent browser cache
Expand Down

0 comments on commit fafdbd4

Please sign in to comment.