Skip to content

Commit b8ff767

Browse files
committed
fix: update programId retrieval to use import.meta.env for Vite compatibility
1 parent e0e08ac commit b8ff767

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/store/apiSlice.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { createApi } from '@reduxjs/toolkit/query/react';
22

33
import { axiosBaseQuery } from '../services/httpService';
44

5-
const env = process.env;
6-
const programId = env.PROGRAM_ID || 'app02';
5+
const programId = import.meta.env.VITE_PROGRAM_ID || 'app02';
76
console.log("programId == ", programId);
87
const baseApiPath = `/cws/${programId}/api`;
98

0 commit comments

Comments
 (0)