Skip to content

Commit c50f6c5

Browse files
✨ Setup Xata and Next Auth
1 parent f294a5f commit c50f6c5

File tree

9 files changed

+181
-4293
lines changed

9 files changed

+181
-4293
lines changed

.xata/migrations/.ledger

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mig_ckifep3vn469mi28pko0_f77d7c38
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"id": "mig_ckifep3vn469mi28pko0",
3+
"checksum": "1:f77d7c3821433d23ef3963fc44ebba51d8e2cc4879857ddd8cf0c354120d33cb",
4+
"operations": [
5+
{
6+
"addTable": {
7+
"table": "reports"
8+
}
9+
}
10+
]
11+
}

.xatarc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"databaseURL": "https://Usman-Sabuwala-s-workspace-u2kcvd.us-east-1.xata.sh/db/project-finder-hf",
3+
"codegen": {
4+
"output": "xata.ts"
5+
}
6+
}

env.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,21 @@ import { z } from 'zod';
33

44
export const env = createEnv({
55
server: {
6-
GITHUB_TOKEN: z.string().optional()
6+
GITHUB_TOKEN: z.string().optional(),
7+
GITHUB_ID: z.string().optional(),
8+
GITHUB_SECRET: z.string().optional(),
9+
XATA_BRANCH: z.string().optional(),
10+
XATA_API_KEY: z.string().optional()
711
},
812
client: {
913
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: z.string().optional()
1014
},
1115
runtimeEnv: {
1216
GITHUB_TOKEN: process.env.GITHUB_TOKEN,
17+
GITHUB_ID: process.env.GITHUB_ID,
18+
GITHUB_SECRET: process.env.GITHUB_SECRET,
19+
XATA_BRANCH: process.env.XATA_BRANCH,
20+
XATA_API_KEY: process.env.XATA_API_KEY,
1321
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME:
1422
process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME
1523
}

0 commit comments

Comments
 (0)