@aziontech/opennextjs-azion
Version:
Azion builder for next apps
59 lines (40 loc) • 1.43 kB
Markdown
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 .
[](https://opennext.js.org/azion) is a Azion specific adapter that enables deployment of Next.js applications to Azion.
To get started with the adapter visit the [official get started documentation](https://opennext.js.org/azion/get-started).
- you can use the regular `next` CLI to start the Next.js dev server:
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
pnpm opennextjs-azion build
yarn opennextjs-azion build
bun opennextjs-azion build
```
- Preview the app in Azion
```bash
npx opennextjs-azion preview
pnpm opennextjs-azion preview
yarn opennextjs-azion preview
```
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
pnpm opennextjs-azion build && pnpm opennextjs-azion deploy
yarn opennextjs-azion build && yarn opennextjs-azion deploy
```