Skip to content

Commit 057e7b0

Browse files
use env for web hook url
1 parent 2d80140 commit 057e7b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/sites/[slug]/[locale]/all.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function Home({ pageProps }: Props) {
8888
try {
8989
const newTreesDonated = await getRequest<TreesDonated>(
9090
pageProps.tenantConfig.id,
91-
'https://automate.plant-for-the-planet.org/webhook/platform/total-tree-count'
91+
`${process.env.WEBHOOK_URL}/platform/total-tree-count`
9292
);
9393
setTreesDonated(newTreesDonated);
9494
} catch (err) {

0 commit comments

Comments
 (0)