Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit 9f3d99f

Browse files
committed
feat: add auth
resolve #9
1 parent 836446b commit 9f3d99f

File tree

14 files changed

+387
-97
lines changed

14 files changed

+387
-97
lines changed

next.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3+
images: {
4+
remotePatterns: [
5+
{
6+
hostname: "lh3.googleusercontent.com",
7+
},
8+
],
9+
},
310
webpack: (config, { isServer }) => {
411
/**
512
* @see https://github.com/mswjs/msw/issues/1801#issuecomment-1794145119

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13+
"@auth/pg-adapter": "^0.4.1",
1314
"@hookform/resolvers": "^3.3.4",
1415
"@radix-ui/react-icons": "^1.3.0",
1516
"@radix-ui/react-label": "^2.0.2",
@@ -20,6 +21,7 @@
2021
"clsx": "^2.1.0",
2122
"next": "14.0.4",
2223
"next-auth": "^4.24.5",
24+
"pg": "^8.11.3",
2325
"react": "^18",
2426
"react-dom": "^18",
2527
"react-hook-form": "^7.49.3",
@@ -31,6 +33,7 @@
3133
"@types/cors": "^2.8.17",
3234
"@types/express": "^4.17.21",
3335
"@types/node": "^20",
36+
"@types/pg": "^8.11.0",
3437
"@types/react": "^18",
3538
"@types/react-dom": "^18",
3639
"autoprefixer": "^10.0.1",

pnpm-lock.yaml

+180-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/activities/model.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type Status = "idle" | "playing" | "stopped";
55

66
type Activity = {
77
id: string;
8+
userId: string;
89
name: string;
910
description: string;
1011
started_at: number;

0 commit comments

Comments
 (0)