Skip to content

Commit bda8e2a

Browse files
authored
Merge branch 'main' into fix/react-ppr-bailout
2 parents 2e3b84e + afeb12c commit bda8e2a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changeset/giant-poems-drum.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@clerk/clerk-expo': patch
3+
---
4+
5+
Support `EXPO_PUBLIC_` prefixes for env variables.
6+
```dotenv
7+
## .env
8+
9+
EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY=xxxxxxxx
10+
```

packages/expo/src/ClerkProvider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export type ClerkProviderProps = ClerkReactProviderProps & {
1515

1616
export function ClerkProvider(props: ClerkProviderProps): JSX.Element {
1717
const { children, tokenCache = MemoryTokenCache, publishableKey, ...rest } = props;
18-
const key = publishableKey || process.env.CLERK_PUBLISHABLE_KEY || '';
18+
const key =
19+
publishableKey || process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY || process.env.CLERK_PUBLISHABLE_KEY || '';
1920

2021
return (
2122
<ClerkReactProvider

0 commit comments

Comments
 (0)