From 28a2aebd4a25ee349a2f1ea94ce9cb5d80b51ec4 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 18 Jan 2025 11:12:25 -0500 Subject: [PATCH] screw cors --- .github/workflows/stars.yml | 1 + src/components/Stars.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stars.yml b/.github/workflows/stars.yml index c787d1b..cdae701 100644 --- a/.github/workflows/stars.yml +++ b/.github/workflows/stars.yml @@ -48,6 +48,7 @@ jobs: if [ "$(cat ./stars.json)" != "$(cat ./remote)" ]; then aws s3 cp ./stars.json s3://www.pkgx.sh/stars.json + aws s3 cp ./stars.json s3://www.pkgx.dev/stars.json aws cloudfront \ create-invalidation \ --distribution-id E8ZRC36XS5K65 \ diff --git a/src/components/Stars.tsx b/src/components/Stars.tsx index 25896ff..eba55fb 100644 --- a/src/components/Stars.tsx +++ b/src/components/Stars.tsx @@ -7,7 +7,7 @@ export default function Stars({ href, hideCountIfMobile }: { href?: string, hide const isxs = useMediaQuery(theme.breakpoints.down('md')); const {value: stars} = useAsync(async () => { - const response = await fetch('https://pkgx.sh/stars.json'); + const response = await fetch('/stars.json'); const data = await response.json(); return data }, [])