Skip to content

Unitools | Next Adapter | Next.js | By GeekyAnts

Features

  • Support for .next-web.{js|ts|jsx|tsx} file extension.
  • Automatic aliasing of @unitools/* packages to @unitools/*-next and react-native to react-native-web.
  • Transpilation support for react-native, react-native-web, @unitools/*-next, @expo/*, and expo-* packages.

Installation

To install the package, use either of the following commands:

Terminal window
npm i @unitools/next-adapter

Then, add the following configuration to your next.config.js file:

/** @type {import('next').NextConfig} */
const { withUnitools } = require("@unitools/next-adapter");
const config = withUnitools({});
module.exports = config;