Overview
A Next.js app continuosly deployed on Vercel.
This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:
1
yarn dev
Copied!
Open http://localhost:3001 with your browser to see the result. The page auto-updates as you edit the file.

Tools

State

  • unstated-next: to wrap up Near Context
  • recoil: state for app-related info
  • SWR: contract data fetch and cache

Design

  • theme-ui: for a consistent themable UI

Packages Development

To enable hot reloading of the packages while developing add the following to your app's next.config.js:
1
const withTM = require('next-transpile-modules')(['@cura/[package-name]'])
2
​
3
module.exports = withTM({
4
webpack5: false, // you want to keep using Webpack 4
5
})
Copied!
In the library you are trying to use, substitute the following entries:
1
"main": "src/index.ts",
2
"files": [
3
"src"
4
],
Copied!
Then make sure you yalc publish in the package and yalc add @cura/[package-name] in your app.
Last modified 3mo ago