From c2011ced8f45323264f4d7e14361a92fef356626 Mon Sep 17 00:00:00 2001 From: raviramnani Date: Sat, 27 Jul 2024 14:22:58 +0530 Subject: [PATCH] Buy_now set Next_public_api_key env variable as BaseURL --- buy-now/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buy-now/pages/index.tsx b/buy-now/pages/index.tsx index d32e04bd22..321b295d54 100644 --- a/buy-now/pages/index.tsx +++ b/buy-now/pages/index.tsx @@ -138,7 +138,7 @@ export default function EaselBuyMainPage({ export async function getServerSideProps({ res, query }: any): Promise { const recipeId: string = query?.recipe_id ?? ""; const cookbookId: string = query?.cookbook_id ?? ""; - const baseURL: string = "https://api.pylons.nodestake.top"; + const baseURL: string = process.env.NEXT_PUBLIC_API_KEY ?? ""; if (!recipeId || !cookbookId) { return { redirect: {