We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61b3881 commit 647b379Copy full SHA for 647b379
env.ts
@@ -5,4 +5,5 @@ import {
5
6
export default defineConfig({
7
APP_TITLE: Schema.string(),
8
+ APP_UNIFIED_ENDPOINT: Schema.string.optional(),
9
});
src/utils/restRequest/unified.ts
@@ -3,7 +3,7 @@ import { ContextInterface } from '@togglecorp/toggle-request';
3
import { resolveUrl } from '#utils/resolveUrl';
4
const CONTENT_TYPE_JSON = 'application/json';
-const unifiedApi = process.env.UNIFIED_ENDPOINT ?? '';
+const unifiedApi = import.meta.env.APP_UNIFIED_ENDPOINT ?? '';
type ResponseError = {
status: number;
0 commit comments