Skip to content

Commit

Permalink
🐎 ci: ζž„ε»ΊηŽ―ε’ƒε˜ι‡ε’žεŠ 
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghui-su committed Jun 17, 2024
1 parent 85e8f84 commit 9a5080e
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ jobs:

# ζ‰“εŒ…
- name: ζ‰“εŒ…
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_SIGN_IN_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_IN_URL }}
NEXT_PUBLIC_CLERK_SIGN_UP_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_UP_URL }}
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: ${{ secrets.NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL }}
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: ${{ secrets.NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL }}
UPLOADTHING_SECRET: ${{ secrets.UPLOADTHING_SECRET }}
UPLOADTHING_APP_ID: ${{ secrets.UPLOADTHING_APP_ID }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npm run build

# δΈŠδΌ ι˜Ώι‡ŒδΊ‘
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
dist/
12 changes: 8 additions & 4 deletions lib/initial-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ export const initialProfile = async () => {

const newProfile = await db.profile.create({
data: {
userId: user.id,
name: `${user.firstName} ${user.lastName}`,
imageUrl: user.imageUrl,
email: user.emailAddresses[0].emailAddress,
// @ts-ignore
userId: user?.id,
// @ts-ignore
name: `${user?.firstName} ${user?.lastName}`,
// @ts-ignore
imageUrl: user?.imageUrl,
// @ts-ignore
email: user?.emailAddresses[0].emailAddress,
},
})
return newProfile
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const nextConfig = {
images: {
domains: ["uploadthing.com", "utfs.io"],
},
distDir: "dist",
}

module.exports = nextConfig
22 changes: 18 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -19,9 +23,19 @@
}
],
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"dist/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 9a5080e

Please sign in to comment.