Skip to content

Commit 95bc738

Browse files
committed
update env variables to be accessible from browser
1 parent 2180ccd commit 95bc738

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/Login.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import Card from './Card'
33

44
const Login = () => (
55
<Card classes="flex justify-center">
6-
<a href={encodeURI(process.env.O_AUTH_REDIRECTION_URL as string)}>
6+
<a
7+
href={encodeURI(process.env.NEXT_PUBLIC_O_AUTH_REDIRECTION_URL as string)}
8+
>
79
<Button>Login with github</Button>
810
</a>
911
</Card>

src/relay/environment.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
CacheConfig,
1111
} from 'relay-runtime'
1212

13-
const HTTP_ENDPOINT = process.env.API_ENDPOINT as string
13+
const HTTP_ENDPOINT = process.env.NEXT_PUBLIC_API_ENDPOINT as string
1414
const IS_SERVER = typeof window === typeof undefined
1515
const CACHE_TTL = 5 * 1000 // 5 seconds, to resolve preloaded results
1616

0 commit comments

Comments
 (0)