File tree 2 files changed +5
-5
lines changed
app/(beforeLogin)/auth/_components
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
+ import { baseUrl } from "constants/environment" ;
3
4
import Image from "next/image" ;
4
5
import { useRouter } from "next/navigation" ;
5
6
import { color } from "wowds-tokens" ;
@@ -9,11 +10,6 @@ const LoginButton = () => {
9
10
const router = useRouter ( ) ;
10
11
11
12
const handleClickLogin = ( ) => {
12
- const baseUrl =
13
- process . env . NODE_ENV === "production"
14
- ? process . env . NEXT_PUBLIC_PROD_BASE_URL
15
- : process . env . NEXT_PUBLIC_DEV_BASE_URL ;
16
-
17
13
router . push ( `${ baseUrl } /oauth2/authorization/github` ) ;
18
14
} ;
19
15
Original file line number Diff line number Diff line change
1
+ export const baseUrl =
2
+ process . env . NODE_ENV === "production"
3
+ ? process . env . NEXT_PUBLIC_PROD_BASE_URL
4
+ : process . env . NEXT_PUBLIC_DEV_BASE_URL ;
You can’t perform that action at this time.
0 commit comments