wallet-connect-web-examples/dapps/vue-dapp-auth/nuxt.config.ts
Pavel Yankovski 7e850d66c4
feat(vue-dapp-auth): Add example dapp on Vue 3 (#76)
Co-authored-by: Ben Kremer <contact@bkrem.dev>
2022-11-14 18:13:55 +01:00

30 lines
792 B
TypeScript

import { version as authClientVersion } from '@walletconnect/auth-client/package.json'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'nuxt-icon',
'@vueuse/nuxt',
'@pinia/nuxt',
],
tailwindcss: {
cssPath: '~/assets/scss/tailwind.scss',
},
runtimeConfig: {
public: {
/**
* Avoiding framework-specific prefixes for env vars
* see https://v3.nuxtjs.org/guide/features/runtime-config/#environment-variables
*/
WALLETCONNECT_PROJECT_ID: process.env.WALLETCONNECT_PROJECT_ID ?? '',
WALLETCONNECT_RELAY_URL: process.env.WALLETCONNECT_RELAY_URL ?? 'wss://relay.walletconnect.com',
authClientVersion,
},
},
})