Skip to content

Commit 647b379

Browse files
committed
fix(setup): update env.ts file
1 parent 61b3881 commit 647b379

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ import {
55

66
export default defineConfig({
77
APP_TITLE: Schema.string(),
8+
APP_UNIFIED_ENDPOINT: Schema.string.optional(),
89
});

src/utils/restRequest/unified.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ContextInterface } from '@togglecorp/toggle-request';
33
import { resolveUrl } from '#utils/resolveUrl';
44

55
const CONTENT_TYPE_JSON = 'application/json';
6-
const unifiedApi = process.env.UNIFIED_ENDPOINT ?? '';
6+
const unifiedApi = import.meta.env.APP_UNIFIED_ENDPOINT ?? '';
77

88
type ResponseError = {
99
status: number;

0 commit comments

Comments
 (0)