To run OpenNext
locally:
- Clone this repository (opens in a new tab).
- Build
open-next
:cd open-next pnpm build
- Run
open-next
in watch mode:pnpm dev
- Now, you can make changes in
open-next
and build your Next.js app to test the changes.cd path/to/my/nextjs/app path/to/open-next/packages/open-next/dist/index.js build
It can be a bit cumbersome to need to deploy every time you want to test changes. If your change is not dependent on the wrapper or the converter, then you can create a custom open-next.config.ts
file, you can take a look here for more information.