Skip to content

Commit

Permalink
Buy_now set Next_public_api_key env variable as BaseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
Raviramnani1 committed Jul 27, 2024
1 parent 2d5c1d4 commit c2011ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buy-now/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function EaselBuyMainPage({
export async function getServerSideProps({ res, query }: any): Promise<any> {
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: {
Expand Down

0 comments on commit c2011ce

Please sign in to comment.