This is a minimal starter kit for using Lucid Evolution with Next.js 15.
pnpm install
pnpm devThis template demonstrates the proper way to integrate WASM-based libraries in Next.js:
- WebPack Configuration
next.config.tsfile includes necessary WebAssembly support - Client Components Components that need WASM are marked with
"use client"and are dynamically imported with{ ssr: false } - Server-Side API Transaction building happens in API routes on the server
- Client-Side Signing Transaction signing and submission happen in the browser