- Add VueQueryPlugin to landing main.ts (wagmi/vue requires it) - Add Vite proxy for /api/graphql → ponder:42069/graphql - Replace axios with native fetch in WalletCard.vue - Add navigateTo() for CTA buttons (uses VITE_APP_URL env) - Load contract addresses from bootstrap in landing entrypoint - Add via_ir to foundry.toml (OptimizerV3Push3 stack-too-deep) - Add VITE_APP_URL env to docker-compose landing service Fixes: blank landing pages, broken LiveStats, missing CTA links, missing contract addresses in footer
16 lines
507 B
TypeScript
16 lines
507 B
TypeScript
import './assets/styles/main.sass';
|
|
import { createApp } from 'vue';
|
|
import { WagmiPlugin } from '@wagmi/vue';
|
|
import { VueQueryPlugin } from '@tanstack/vue-query';
|
|
import { createHarbConfig } from '@harb/web3';
|
|
import App from './App.vue';
|
|
import router from './router';
|
|
|
|
const rpcUrl = import.meta.env.VITE_LOCAL_RPC_URL ?? '/api/rpc';
|
|
const config = createHarbConfig({ rpcUrl });
|
|
|
|
const app = createApp(App);
|
|
app.use(VueQueryPlugin);
|
|
app.use(WagmiPlugin, { config });
|
|
app.use(router);
|
|
app.mount('#app');
|