Skip to content

🎥 Make videos programmatically with React

Update promo pages location endpoint (#7815)

Igor Samokhovets4283e180b8fe
diff --git a/packages/promo-pages/src/components/homepage/Demo/Comp.tsx b/packages/promo-pages/src/components/homepage/Demo/Comp.tsx
index 8ebcea195a..09dbca9d57 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://bugs-five.vercel.app/api/location',
- ).then((res) => res.json())) as Location;
+ const location = (await fetch('https://utils.remotion.dev/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}`,