We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0e08ac commit b8ff767Copy full SHA for b8ff767
1 file changed
src/store/apiSlice.ts
@@ -2,8 +2,7 @@ import { createApi } from '@reduxjs/toolkit/query/react';
2
3
import { axiosBaseQuery } from '../services/httpService';
4
5
-const env = process.env;
6
-const programId = env.PROGRAM_ID || 'app02';
+const programId = import.meta.env.VITE_PROGRAM_ID || 'app02';
7
console.log("programId == ", programId);
8
const baseApiPath = `/cws/${programId}/api`;
9
0 commit comments