Skip to content

Commit

Permalink
proper upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
cnrad committed Dec 17, 2023
1 parent 95b80e8 commit 4ac26ba
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 1,291 deletions.
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"framer-motion": "^4.1.17",
"image-to-base64": "^2.2.0",
"ioredis": "^4.28.5",
"next": "12.0.0",
"react": "18.0.0",
"react-dom": "17.0.2",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"styled-components": "^5.3.0",
"use-smooth-count": "^0.3.0"
},
"devDependencies": {
"@types/escape-html": "^1.0.1",
"@types/image-to-base64": "^2.1.0",
"@types/react": "17.0.11",
"@types/react": "^18.2.45",
"eslint": "7.28.0",
"eslint-config-next": "11.0.0",
"prettier": "^2.3.1",
Expand Down
6 changes: 6 additions & 0 deletions pages/api/[...id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ type Parameters = {

export default async function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
let getUser;

if (!req.query.id)
return res.send({
error: `No ID provided.`,
});

const params: Parameters = req.query,
userId = req.query.id[0];

Expand Down
Loading

1 comment on commit 4ac26ba

@vercel
Copy link

@vercel vercel bot commented on 4ac26ba Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.