Overview
A Next.js app continuosly deployed on Vercel.
First, run the development server:
yarn dev
Open http://localhost:3001 with your browser to see the result. The page auto-updates as you edit the file.
- unstated-next: to wrap up Near Context
- recoil: state for app-related info
- SWR: contract data fetch and cache
- theme-ui: for a consistent themable UI
To enable hot reloading of the packages while developing add the following to your app's
next.config.js
:const withTM = require('next-transpile-modules')(['@cura/[package-name]'])
module.exports = withTM({
webpack5: false, // you want to keep using Webpack 4
})
In the library you are trying to use, substitute the following entries:
"main": "src/index.ts",
"files": [
"src"
],
Then make sure you
yalc publish
in the package and yalc add @cura/[package-name]
in your app.Last modified 2yr ago