Skip to content

Commit

Permalink
Add docs url from env in operators page (skip deploy)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Oct 26, 2023
1 parent 18db2e8 commit 76ccef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/web/src/composables/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const ethereumUrl = import.meta.env.PUBLIC_ETHEREUM_RPC_URL || 'http://127.0.0.1
const provider = new ethers.providers.JsonRpcProvider(ethereumUrl)

/* Casimir environment */
const docsUrl = import.meta.env.PUBLIC_DOCS_URL || 'https://docs.dev.casimir.co'
const usersUrl = import.meta.env.PUBLIC_USERS_URL || 'http://localhost:4000'
const walletConnectProjectId = import.meta.env.PUBLIC_WALLET_CONNECT_PROJECT_ID

Expand Down Expand Up @@ -44,6 +45,7 @@ export default function useEnvironment() {
speculosUrl,
ssvNetworkAddress,
ssvViewsAddress,
docsUrl,
usersUrl,
walletConnectProjectId
}
Expand Down
4 changes: 3 additions & 1 deletion apps/web/src/pages/operators/Operator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import { onMounted, ref, watch } from 'vue'
import VueFeather from 'vue-feather'
import { ProviderString } from '@casimir/types'
import useAuth from '@/composables/auth'
import useEnvironment from '@/composables/environment'
// import useEthers from '@/composables/ethers'
import useFiles from '@/composables/files'
import useFormat from '@/composables/format'
import useOperators from '@/composables/operators'
import useUser from '@/composables/user'
const { loadingSessionLogin } = useAuth()
const { docsUrl } = useEnvironment()
// const { detectActiveWalletAddress } = useEthers()
const { exportFile } = useFiles()
const { convertString } = useFormat()
Expand Down Expand Up @@ -382,7 +384,7 @@ watch([loadingSessionLogin || loadingInitializeOperators], () =>{
<p class="text-sm">
Learn how to set up a Casimir operator using
<a
href="https://docs.dev.casimir.co/"
:href="docsUrl"
target="_blank"
class="text-primary underline"
>
Expand Down

0 comments on commit 76ccef5

Please sign in to comment.