Skip to content

Commit

Permalink
chore(example): update preact links in examples (#34233)
Browse files Browse the repository at this point in the history
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
  • Loading branch information
eolme committed Feb 11, 2022
1 parent 0a916cf commit a104cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/data-fetch/pages/preact-stars.js
Expand Up @@ -12,7 +12,7 @@ function PreactStars({ stars }) {
}

export async function getStaticProps() {
const res = await fetch('https://api.github.com/repos/developit/preact')
const res = await fetch('https://api.github.com/repos/preactjs/preact')
const json = await res.json()

return {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vercel-fetch/pages/preact.js
Expand Up @@ -13,7 +13,7 @@ export default function Preact({ stars }) {
}

export async function getStaticProps() {
const res = await fetch('https://api.github.com/repos/developit/preact')
const res = await fetch('https://api.github.com/repos/preactjs/preact')
const json = await res.json() // better use it inside try .. catch
return {
props: { stars: json.stargazers_count },
Expand Down

0 comments on commit a104cf6

Please sign in to comment.