Skip to content

Commit

Permalink
created a new env variable Next_public_COSMOS_URL and set it as BaseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
Raviramnani1 committed Jul 27, 2024
1 parent c2011ce commit 4260790
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 = process.env.NEXT_PUBLIC_API_KEY ?? "";
const baseURL: string = process.env.NEXT_PUBLIC_COSMOS_URL ?? "";
if (!recipeId || !cookbookId) {
return {
redirect: {
Expand Down

0 comments on commit 4260790

Please sign in to comment.