Skip to content

Commit

Permalink
Fixed build issue with resolving importing env file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Nov 13, 2024
1 parent 8eb8220 commit 49b7122
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/checkout/src/api/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ChainId, networks } from '@0xsequence/network'

import { CreditCardCheckout } from '../contexts'

import { DEVMODE } from '../../../../env'
import { DEVMODE } from '@0xsequence/kit/env'

export interface FetchSardineClientTokenReturn {
token: string
Expand Down
2 changes: 1 addition & 1 deletion packages/checkout/src/utils/sardine.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChainId, networks } from '@0xsequence/network'
import { ethers } from 'ethers'

import { DEVMODE } from '../../../../env'
import { DEVMODE } from '@0xsequence/kit/env'

export interface CheckSardineWhitelistStatusArgs {
chainId: number
Expand Down
2 changes: 1 addition & 1 deletion packages/checkout/src/views/PendingTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fetchSardineOrderStatus } from '../api'
import { TransactionPendingNavigation } from '../contexts'
import { useNavigation, useCheckoutModal, useSardineClientToken, useTransactionStatusModal } from '../hooks'

import { DEVMODE } from '../../../../env'
import { DEVMODE } from '@0xsequence/kit/env'

const POLLING_TIME = 10 * 1000

Expand Down
1 change: 1 addition & 0 deletions packages/kit/env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DEVMODE = false
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { createConnector } from 'wagmi'

import { LocalStorageKey } from '../../constants/localStorage'

import { DEVMODE } from '../../../../../env'
import { DEVMODE } from '@0xsequence/kit/env'

export interface SequenceWaasConnectConfig {
googleClientId?: string
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/hooks/useAPIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useKitConfig } from '../contexts/KitConfig'

import { useProjectAccessKey } from './useProjectAccessKey'

import { DEVMODE } from '../../../../env'
import { DEVMODE } from '@0xsequence/kit/env'

export const useAPIClient = () => {
const projectAccessKey = useProjectAccessKey()
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/hooks/useIndexerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useKitConfig } from '../contexts/KitConfig'

import { useProjectAccessKey } from './useProjectAccessKey'

import { DEVMODE } from '../../../../env'
import { DEVMODE } from '@0xsequence/kit/env'

export const useIndexerClient = (chainId: ChainId) => {
const projectAccessKey = useProjectAccessKey()
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/hooks/useMetadataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useKitConfig } from '../contexts/KitConfig'

import { useProjectAccessKey } from './useProjectAccessKey'

import { DEVMODE } from '../../../../env'
import { DEVMODE } from '@0xsequence/kit/env'

export const useMetadataClient = () => {
const projectAccessKey = useProjectAccessKey()
Expand Down

0 comments on commit 49b7122

Please sign in to comment.