Skip to content

Commit

Permalink
specify framework; ignore nextauth types for passing build
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroji-fusky committed Mar 7, 2023
1 parent c8b2308 commit 82bf45c
Show file tree
Hide file tree
Showing 3 changed files with 1,830 additions and 895 deletions.
2 changes: 2 additions & 0 deletions src/pages/api/auth/[...nextauth].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default NextAuth({
],
callbacks: {
async signIn({ user, account, profile }) {
// @ts-ignore
user.avatar = profile.image || profile.picture
// @ts-ignore
user.name = (profile.username as string) + "#" + profile.discriminator
// @ts-expect-error
user.id = profile.id
Expand Down
6 changes: 6 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"framework": "nextjs",
"github": {
"silent": true
}
}
Loading

0 comments on commit 82bf45c

Please sign in to comment.