From dbcf3a5a4f4bed7c25274833828664d2c0c02bcf Mon Sep 17 00:00:00 2001 From: Calli Date: Fri, 21 Jul 2023 08:39:04 +0300 Subject: [PATCH] move praisal url to env and use avanto instance --- .env.example | 3 ++- src/eve-praisal.ts | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 7ebb8d2..c1e2b93 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ # Populate these env variables from the app you create at https://developers.eveonline.com/ EVE_SSO_CLIENT_ID=Client ID EVE_SSO_SECRET=Secret Key -EVE_SSO_CALLBACK_URL=Callback URL (This should be the domain you are hosting at or if run locally it should be http://localhost:3000) \ No newline at end of file +EVE_SSO_CALLBACK_URL=Callback URL (This should be the domain you are hosting at or if run locally it should be http://localhost:3000) +NEXT_PUBLIC_PRAISAL_URLPRAISAL_URL=https://praisal.avanto.tk/appraisal/structured.json?persist=no \ No newline at end of file diff --git a/src/eve-praisal.ts b/src/eve-praisal.ts index 9c6ecfd..c566ba6 100644 --- a/src/eve-praisal.ts +++ b/src/eve-praisal.ts @@ -79,8 +79,7 @@ export interface EvePraisalRequest { items: { amount: number; typeId: number }[]; } -const PRAISAL_URL = - "https://evepraisal.com/appraisal/structured.json?persist=no"; +const PRAISAL_URL = process.env.NEXT_PUBLIC_PRAISAL_URL ?? ""; export const getPraisal = async ( items: { quantity: number; type_id: number }[]