Skip to content

Commit

Permalink
change to next14
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Oct 26, 2023
1 parent b265610 commit 8abf358
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 82 deletions.
4 changes: 4 additions & 0 deletions components/public/fetchPublicGallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export default function FetchGallery() {
);
};

function deleteCookie(name) {
document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
}

const handleApiResponse = (response) => {
if (response.status === 401 || !response.ok) {
deleteCookie("jwt");
Expand Down
133 changes: 53 additions & 80 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"autoprefixer": "10.4.14",
"axios": "^1.5.0",
"eslint": "8.44.0",
"eslint-config-next": "13.5.6",
"eslint-config-next": "14.0.0",
"js-cookie": "^3.0.5",
"mysql2": "^3.4.3",
"next": "^13.5.6",
"next": "^14.0.0",
"postcss": "^8.4.31",
"prettier": "^2.8.8",
"react": "18.2.0",
Expand Down

0 comments on commit 8abf358

Please sign in to comment.