diff --git a/apps/jira/jira-app/src/constants.ts b/apps/jira/jira-app/src/constants.ts index e9f115b87a..dfd6d360aa 100644 --- a/apps/jira/jira-app/src/constants.ts +++ b/apps/jira/jira-app/src/constants.ts @@ -1,15 +1,9 @@ let LAMBDA_URI = 'https://api.jira.ctfapps.net'; let CLIENT_ID = 'XD9k9QU9VT4Rt26u6lbO3NM0fOqvvXan'; -interface ImportMetaValue extends ImportMeta { - NODE_ENV?: string; - VITE_NGROK_URL?: string; - VITE_ATLASSIAN_APP_CLIENT_ID?: string; -} - -if ((import.meta as ImportMetaValue).NODE_ENV === 'development') { - LAMBDA_URI = `${(import.meta as ImportMetaValue).VITE_NGROK_URL}/test`; - CLIENT_ID = (import.meta as ImportMetaValue).VITE_ATLASSIAN_APP_CLIENT_ID || ''; +if (import.meta.env.DEV) { + LAMBDA_URI = `${import.meta.env.VITE_NGROK_URL}/test`; + CLIENT_ID = import.meta.env.VITE_ATLASSIAN_APP_CLIENT_ID || ''; } const constants = { diff --git a/apps/jira/jira-app/tsconfig.json b/apps/jira/jira-app/tsconfig.json index 8c933a61d7..d3d10dc471 100644 --- a/apps/jira/jira-app/tsconfig.json +++ b/apps/jira/jira-app/tsconfig.json @@ -14,7 +14,8 @@ "resolveJsonModule": true, "types": [ "@types/jest", - "@types/node" + "@types/node", + "vite/client" ], "allowJs": true, "skipLibCheck": true,