Skip to content

Commit

Permalink
fix: env
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 19, 2024
1 parent c611bbf commit b4c74e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { isClientSide, isDev } from '~/lib/env'
export const API_URL: string = (() => {
if (isDev) return process.env.NEXT_PUBLIC_API_URL

if (isClientSide && process.env.NEXT_PUBLIC_CHINA_API_URL) {
return process.env.NEXT_PUBLIC_CHINA_API_URL
if (isClientSide && process.env.NEXT_PUBLIC_CLIENT_API_URL) {
return process.env.NEXT_PUBLIC_CLIENT_API_URL
}

return process.env.NEXT_PUBLIC_API_URL || '/api/v2'
Expand Down

0 comments on commit b4c74e3

Please sign in to comment.