Skip to content

Commit

Permalink
downgrade node fetch due to webpack build error
Browse files Browse the repository at this point in the history
  • Loading branch information
l4lilul3lo committed Dec 22, 2022
1 parent f6dd75d commit 6045c37
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 118 deletions.
165 changes: 52 additions & 113 deletions next/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ioredis": "^5.2.4",
"next": "^13.0.3",
"next-session": "^4.0.5",
"node-fetch": "^3.3.0",
"node-fetch": "^2.6.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-query": "^3.39.2"
Expand Down
5 changes: 1 addition & 4 deletions next/pages/login.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// import { getSession } from "../session.js";
import HeaderMain from "../components/HeaderMain";
import FooterMain from "../components/FooterMain";
import LoginForm from "../components/LoginForm";
// import axios from "axios";
import fetch from "node-fetch";
// import { checkAuth } from "../session.js";
// import signature from "cookie-signature";

export async function getServerSideProps({ req, res }) {
const response = await fetch("http://localhost:5000/api/auth/checkAuth", {
method: "POST",
Expand Down

0 comments on commit 6045c37

Please sign in to comment.