Skip to content

Commit

Permalink
fixed env
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPadmanathan committed Oct 10, 2023
1 parent 66b7d7d commit 6c25373
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import { config } from '@/interfaces/config';
export async function getServerSideProps() {
const productsRes: Response = await fetch(
process.env.NEXT_PUBLIC_URL + '/api/products'
// 'https://takeaway-website.vercel.app/api/products'
);
const productsData: products = await productsRes.json();

const configRes: Response = await fetch(
process.env.NEXT_PUBLIC_URL + '/api/config'
// 'https://takeaway-website.vercel.app/api/config'
);
const configData: config = await configRes.json();
return {
Expand Down

0 comments on commit 6c25373

Please sign in to comment.