Skip to content

Commit

Permalink
screw cors
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 18, 2025
1 parent 6c1ffac commit 28a2aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/stars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}, [])
Expand Down

0 comments on commit 28a2aeb

Please sign in to comment.