🎥 Make videos programmatically with React
Revert "Update promo pages location endpoint (#7815)"
JonnyBurgerccdb225baa28
diff --git a/packages/promo-pages/src/components/homepage/Demo/Comp.tsx b/packages/promo-pages/src/components/homepage/Demo/Comp.tsxindex 09dbca9d57..8ebcea195a 100644--- a/packages/promo-pages/src/components/homepage/Demo/Comp.tsx+++ b/packages/promo-pages/src/components/homepage/Demo/Comp.tsx@@ -27,9 +27,9 @@ export type LocationAndTrending = {};export const getDataAndProps = async () => {- const location = (await fetch('https://utils.remotion.dev/location').then(- (res) => res.json(),- )) as Location;+ const location = (await fetch(+ 'https://bugs-five.vercel.app/api/location',+ ).then((res) => res.json())) as Location;const trending = await fetch(`https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}&country=${location.country}`,