-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.vue
More file actions
executable file
·33 lines (28 loc) · 888 Bytes
/
Copy pathapp.vue
File metadata and controls
executable file
·33 lines (28 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<template>
<NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
</template>
<script setup lang="ts">
import { createAppKit, type ChainAdapter } from '@reown/appkit/vue';
import { networks, createWagmiConfig } from './config/wagmi.config';
import { metadata } from '@/config/web3modal.config';
const nuxtConfig = useRuntimeConfig();
const projectId = nuxtConfig.public.walletConnectProjectId;
const phase = nuxtConfig.public.phase || 'dev';
const rpcUrl =
nuxtConfig.public.evmRpc || 'https://sepolia.gateway.tenderly.co';
const selectedNetworks =
phase === 'live' ? [networks[0]] : ([networks[1]] as any);
const { wagmiAdapter } = createWagmiConfig();
createAppKit({
adapters: [wagmiAdapter as ChainAdapter],
networks: selectedNetworks,
metadata,
projectId,
features: {
connectMethodsOrder: ['wallet', 'email', 'social'],
},
});
</script>