-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from AllanOliveiraM/develop
feat: use nextjs sentry lib
- Loading branch information
Showing
5 changed files
with
198 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
type HomeProps = { catFacts: string[] | undefined } | ||
|
||
const Home = ({ catFacts }: HomeProps) => ( | ||
<div> | ||
<ul> | ||
{catFacts?.map(catFact => ( | ||
<li key={catFact}>Fact: {catFact}</li> | ||
))} | ||
</ul> | ||
</div> | ||
) | ||
|
||
export const getStaticProps = async () => { | ||
// const response = await fetch('https://cat-fact.herokuapp.com/facts') | ||
// const parsedData = await response.json() | ||
|
||
// const formattedData = parsedData?.map((cat) => cat.text) | ||
|
||
const formattedData = [ | ||
'Cats make about 100 different sounds. Dogs make only about 10.', | ||
'Domestic cats spend about 70 percent of the day sleeping and 15 percent of the day grooming.', | ||
'I do not know anything about cats.', | ||
'The technical term for a cat’s hairball is a bezoar.', | ||
'Cats are the most popular pet in the United States.', | ||
] | ||
|
||
return { | ||
props: { catFacts: formattedData }, | ||
} | ||
} | ||
|
||
export default Home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
606b3c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: