File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { stripeClient } from '@better-auth/stripe/client'
22import { emailOTPClient , genericOAuthClient , organizationClient } from 'better-auth/client/plugins'
33import { createAuthClient } from 'better-auth/react'
4- import { isProd } from '@/lib/environment'
54
65const clientEnv = {
76 NEXT_PUBLIC_VERCEL_URL : process . env . NEXT_PUBLIC_VERCEL_URL ,
@@ -32,7 +31,7 @@ export const client = createAuthClient({
3231 emailOTPClient ( ) ,
3332 genericOAuthClient ( ) ,
3433 // Only include Stripe client in production
35- ...( isProd
34+ ...( clientEnv . NODE_ENV === 'production'
3635 ? [
3736 stripeClient ( {
3837 subscription : true , // Enable subscription management
@@ -47,7 +46,7 @@ export const { useSession, useActiveOrganization } = client
4746
4847export const useSubscription = ( ) => {
4948 // In development, provide mock implementations
50- if ( ! isProd ) {
49+ if ( clientEnv . NODE_ENV === 'development' ) {
5150 return {
5251 list : async ( ) => ( { data : [ ] } ) ,
5352 upgrade : async ( ) => ( {
You can’t perform that action at this time.
0 commit comments