diff --git a/.github/workflows/stars.yml b/.github/workflows/stars.yml index c787d1be..cdae701d 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 25896ffe..eba55fb2 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 }, [])