Skip to content

Commit

Permalink
static 데이터 경로 환경변수로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseok1006 committed Jul 15, 2024
1 parent 31b3bb8 commit f9727b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/static-data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const STATIC_API_URL = 'https://transfer-static.inging.app';
// const STATIC_API_URL = 'https://transfer-static.inging.app';
const STATIC_API_URL = import.meta.env.VITE_STATIC_API_URL;

// export const getColleges = () => fetch(`${STATIC_API_URL}/colleges.json`);

Expand Down
6 changes: 6 additions & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
interface ImportMeta {
env: {
VITE_API_SERVER: string;
VITE_STATIC_API_URL: string;
};
}

0 comments on commit f9727b0

Please sign in to comment.