Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lowk3v committed May 18, 2023
1 parent a2f6838 commit 9776b5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

Makefile
yarn.lock
# dependencies
/node_modules
/.pnp
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

[![Netlify Status](https://api.netlify.com/api/v1/badges/43c4f6d6-87cb-4e10-863b-96e0b7d298b1/deploy-status)](https://app.netlify.com/sites/portfolio-nextjs-v2/deploys)

## Getting Started

First, run the development server:
Expand Down
Empty file added next.config.js
Empty file.
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function Home(props) {
const [showTip, setShowTip] = useState(false);

useEffect(() => {
getStaticProps();
setShowTip(true);
}, []);

Expand Down Expand Up @@ -229,7 +228,7 @@ export default function Home(props) {

<h2>Latest Updates 👇</h2>
<div className={styles['issue-container']}>
{props.latest.map((issue, i) => (
{props.latest && props.latest.map((issue, i) => (
<a key={i} href={issue.link} className={styles['issue-line']}>
<div className={styles['issue-header']}>
<div
Expand Down Expand Up @@ -288,6 +287,7 @@ export default function Home(props) {

export async function getStaticProps() {
try {
debugger
const parser = new Parser();
const [newsletter] =
await Promise.all([
Expand Down

0 comments on commit 9776b5c

Please sign in to comment.