Skip to content

Commit

Permalink
perf: update -> nextjs 14
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthaMishra-dev committed Jan 29, 2024
1 parent 0ad5a45 commit 7bdcc55
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 195 deletions.
11 changes: 11 additions & 0 deletions app/blogs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ export const revalidate = 0;

export default async function Blogs() {
const blogs = await getBlogs();
// let blogs = [];
// const url = "/api/blogs";
// try {
// const response = await fetch(url, {
// method: "GET",
// headers: { "Content-Type": "application/json" },
// });
// blogs = await response.json();
// } catch (err) {
// console.log(err);
// }

return (
<div className="h-full w-full overflow-auto p-4 flex flex-col items-center">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"framer-motion": "^10.15.2",
"mongodb": "^5.9.0",
"mongoose": "^7.4.2",
"next": "13.4.13",
"next": "14.1.0",
"next-auth": "^4.22.5",
"postcss": "8.4.27",
"react": "18.2.0",
Expand Down
Loading

0 comments on commit 7bdcc55

Please sign in to comment.