Unitools | Install in Next.js | By GeekyAnts
Steps
- Installation - Install all the
@unitools
packages required. - Configuration - Please configure the project correctly, refer this docs
- File Setup - Add support for
.next-web.{js|ts|jsx|tsx}
file extension. - Aliases Setup - Add aliasing of
@unitools/*
packages to@unitools/*-next
andreact-native
toreact-native-web
.
Installation
Run the following commands to install all the packages supported under unitools.
Add aliasing
For @unitools/image
, @unitools/link
, and @unitools/router
to work in Next.js we need to alias
it with @unitools/image-next
, @unitools/link-next
, and @unitools/router-next
respectively