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

Commit 3a774e8

Browse files
authored
Merge pull request #30 from clerkinc/updates-nextjs
Updates nextjs
2 parents 7e55dd2 + f8b1579 commit 3a774e8

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ on:
1111
env:
1212
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
1313
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
14-
NEXT_PUBLIC_CLERK_FRONTEND_API: ${{secrets.NEXT_PUBLIC_CLERK_FRONTEND_API}}
15-
CLERK_API_KEY: ${{secrets.CLERK_API_KEY}}
16-
CLERK_JWT_KEY: ${{secrets.CLERK_JWT_KEY}}
14+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}}
15+
CLERK_SECRET_KEY: ${{secrets.CLERK_SECRET_KEY}}
1716

1817

1918
jobs:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ pnpm db-push
6666
### Configure Expo app
6767

6868
```
69-
// FOR CLERK APPS AFTER 1/18/2023 pk_test_XXXXXXXXXXXXXXXXXXXXXXXX
7069
export const CLERK_PUBLISHABLE_KEY = undefined;
7170
```
7271

apps/expo/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* URL key for the Clerk auth API. You can find this in your Clerk dashboard:
33
* https://dashboard.clerk.dev
44
*
5-
* NOTE: we recommend putting the frontend api key / publishable key here instead of in your .env
5+
* NOTE: we recommend putting the publishable key here instead of in your .env
66
* files for two reasons:
7-
* 1. It's okay for this to be "public" (CLERK_API_KEY and CLERK_JWT_KEY should
7+
* 1. It's okay for this to be "public" (CLERK_SECRET_KEY
88
* NEVER be public)
99
* 2. Parsing the .env file in Metro/Expo runs the risk of including the
1010
* variables above that we don't want (and it's obnoxious to do right as a

apps/nextjs/src/env/schema.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { z } from "zod";
77
*/
88
export const serverSchema = z.object({
99
NODE_ENV: z.enum(["development", "test", "production"]),
10-
CLERK_API_KEY: z.string().optional(),
11-
CLERK_JWT_KEY: z.string().optional(),
1210
CLERK_SECRET_KEY: z.string().optional(),
1311
});
1412

@@ -18,7 +16,6 @@ export const serverSchema = z.object({
1816
* To expose them to the client, prefix them with `NEXT_PUBLIC_`.
1917
*/
2018
export const clientSchema = z.object({
21-
NEXT_PUBLIC_CLERK_FRONTEND_API: z.string().optional(),
2219
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: z.string().optional(),
2320
});
2421

@@ -29,7 +26,5 @@ export const clientSchema = z.object({
2926
* @type {{ [k in keyof z.infer<typeof clientSchema>]: z.infer<typeof clientSchema>[k] | undefined }}
3027
*/
3128
export const clientEnv = {
32-
NEXT_PUBLIC_CLERK_FRONTEND_API: process.env.NEXT_PUBLIC_CLERK_FRONTEND_API,
33-
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:
34-
process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,
29+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,
3530
};

turbo.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
"globalEnv": [
3535
"DATABASE_URL",
3636
"NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY",
37-
"NEXT_PUBLIC_CLERK_FRONTEND_API",
38-
"CLERK_API_KEY",
39-
"CLERK_JWT_KEY",
4037
"CLERK_SECRET_KEY"
4138
]
4239
}

0 commit comments

Comments
 (0)