Add cross-chain Next.js starter template#47
Conversation
|
Reviewed locally. Three things before this is ready to merge:
I prototyped (1) and (2) locally end-to-end. Happy to share the diff. |
|
Thanks, this is clear and the split makes sense. I’ll handle it in the order you suggested:
If you have the local prototype diff handy, please share it — that would help me align with the implementation you validated locally. |
|
Follow-up PR is up: w3-kit/ui#110 Once that lands, I’ll rebase this PR onto |
|
Follow-up is pushed. What changed in this revision:
Dependency PR is merged: Fresh verification:
|
PetarStoev02
left a comment
There was a problem hiding this comment.
Two small tweaks before merge:
-
Favicon doesn't match w3-kit branding. Templates should reuse the marketing favicon for consistency. Replace
app/icon.svgwith the one fromw3-kit/websiteatpublic/favicon.svg:curl -o templates/nextjs-crosschain/app/icon.svg \ https://raw.githubusercontent.com/w3-kit/website/main/public/favicon.svg
-
Meta title needs the w3-kit suffix. Tab currently reads "Next.js Cross-chain Starter". Update
metadata.titleinapp/layout.tsx:title: { default: "Next.js Cross-chain Starter | w3-kit", template: "%s | w3-kit", },
|
Addressed the requested follow-up in dedfca2.\n\n- Replaced emplates/nextjs-crosschain/app/icon.svg with the shared w3-kit/website favicon\n- Updated the template metadata title to use the | w3-kit suffix\n- Re-ran cd templates/nextjs-crosschain && npm run build successfully\n\nReady for another look. |
Summary
templates/nextjs-crosschain/Next.js App Router template..learn.mdexplaining provider layering, wallet model differences, and why this first template does not implement a real bridge.Scope
This PR intentionally keeps the example interaction to identity/session pairing. It does not add a bridge, token transfers, backend auth, relayers, production signing proofs, or protocol-specific trust assumptions.
Verification
cd templates/nextjs-crosschain && npm cicd templates/nextjs-crosschain && npm run buildnpx prettier --check templates/nextjs-crosschain/README.md templates/nextjs-crosschain/.learn.mdtext=Connect EVMvisibletext=Select WalletvisibleNotes
next@15.5.18instead of15.1.5because npm reports15.1.5as vulnerable.@solana/wallet-adapter-walletsso the template avoids bundling many unused adapters.Closes #30