move praisal url to env and use avanto instance

This commit is contained in:
Calli
2023-07-21 08:39:04 +03:00
parent 05196d1b64
commit dbcf3a5a4f
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
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

View File

@@ -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 }[]