Skip to content

Commit

Permalink
Adjust some code for Next 15
Browse files Browse the repository at this point in the history
  • Loading branch information
KittySparkles committed Nov 22, 2024
1 parent d575e80 commit c4ebaf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"engines": {
"node": "18.x"
"node": "20.x"
},
"scripts": {
"modulify": "node bin/modulify.mjs",
Expand Down
1 change: 1 addition & 0 deletions src/pages/api/shorten.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const shorten = (url, withCustomDomain = false) =>
API_URL +
`?key=${API_KEY}&short=${url}&noTitle=1&userDomain=` +
Number(withCustomDomain),
{ cache: 'force-cache' },
).then(response => response.json())

export default async function handler(request, response) {
Expand Down

0 comments on commit c4ebaf1

Please sign in to comment.