UNPKG

@aziontech/opennextjs-azion

Version:
59 lines (40 loc) 1.43 kB
# OpenNext for Azion Deploy Next.js apps to Azion! <!-- TODO: this will be available when the package is integrated into the openenextjs organization --> > **Warning** > This will be available when the package is integrated into the openenextjs organization . [OpenNext for Azion](https://opennext.js.org/azion) is a Azion specific adapter that enables deployment of Next.js applications to Azion. ## Get started To get started with the adapter visit the [official get started documentation](https://opennext.js.org/azion/get-started). ## Local development - you can use the regular `next` CLI to start the Next.js dev server: ## Local preview Run the following commands to preview the production build of your application locally: - build the app and adapt it for Azion ```bash npx opennextjs-azion build # or pnpm opennextjs-azion build # or yarn opennextjs-azion build # or bun opennextjs-azion build ``` - Preview the app in Azion ```bash npx opennextjs-azion preview # or pnpm opennextjs-azion preview # or yarn opennextjs-azion preview ``` ## Deploy your app Deploy your application to production with the following: - build the app and adapt it for Azion ```bash npx opennextjs-azion build && npx opennextjs-azion deploy # or pnpm opennextjs-azion build && pnpm opennextjs-azion deploy # or yarn opennextjs-azion build && yarn opennextjs-azion deploy ```