-
Notifications
You must be signed in to change notification settings - Fork 4
fix(performance): lazy loading, dns-prefetch, and chunk splitting #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: fix/a11y
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,19 @@ export default defineConfig({ | |
| hostname: 'https://dappbooster.dev', | ||
| }), | ||
| ], | ||
| build: { | ||
| rollupOptions: { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are we planning on upgrading vite? we currently use v6, while v8 is the current one I'm asking because
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess we'll eventually have to. |
||
| output: { | ||
| manualChunks: { | ||
| 'vendor-react': ['react', 'react-dom', 'react-dom/client'], | ||
| 'vendor-wagmi': ['wagmi', 'viem'], | ||
| 'vendor-tanstack': ['@tanstack/react-query', '@tanstack/react-router'], | ||
| 'vendor-chakra': ['@chakra-ui/react'], | ||
| 'vendor-web3': ['@reown/appkit', '@reown/appkit-adapter-wagmi'], | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| envPrefix: 'PUBLIC_', | ||
| resolve: { | ||
| alias: { | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These
dns-prefetchhints are hard-coded to specific public RPC hosts, but the app’s actual RPC endpoints are configured viaPUBLIC_RPC_*env vars (seesrc/lib/networks.config.ts). As-is, this may prefetch domains that aren’t used (unnecessary DNS leakage + wasted work) and may miss the domains that are used in a given deployment. Suggest either removing these hints or generating them from the configured RPC URLs during build/deploy (so they always match the active RPC hosts).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not removing. The fallback RPCs (llamarpc, cloudflare, etc.) are the wagmi default public providers — for any deployment that doesn't configure custom RPCs they are the actual endpoints used. The hints are best-effort and cause no harm when a custom RPC is configured.