npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aziontech/opennextjs-azion

v1.2.0

Published

Azion builder for Next.js apps

Readme

OpenNext for Azion

Deploy Next.js apps to Azion!

OpenNext is an adapter that enables the deployment of Next.js applications to Azion's developer platform.

Get started

To get started with OpenNext for Azion, you need to have an existing Next.js project or create a new Next.js project.

Or see the playground-13 example for a simple Next.js application that uses the OpenNext for Azion package.

To build, run the following command:

pnpm add @aziontech/opennextjs-azion

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

    npx opennextjs-azion build
    # or
    pnpm opennextjs-azion build
    # or
    yarn opennextjs-azion build
  • Preview the app in Azion

    npx opennextjs-azion preview
    # or
    pnpm opennextjs-azion preview
    # or
    yarn opennextjs-azion preview

Deploy by CLI

To deploy to Azion, you need an Azion account and must use the Azion CLI. See the Azion CLI Documentation for more information on how to set up your account and use the CLI.

To deploy your application to Azion using the Azion CLI, follow these steps:

  1. Link your project:

    azion link
  2. Build your application:

    azion build --preset opennextjs
  3. Preview your application:

    azion dev --port 3000 --skip-framework-build

    This will start a local server to preview your application.

  4. Deploy your application:

    azion deploy --skip-build --local

Environment Variables

The following environment variables can be used to customize the behavior of OpenNext for Azion:

OPEN_NEXTJS_NO_INTERACTIVE_PROMPT

Controls whether interactive prompts are shown during the build process.

  • Default: undefined (prompts are shown)
  • Values:
    • "true": Automatically creates required configuration files without prompting
    • Any other value or unset: Shows interactive prompts (default behavior)

Usage in CI/CD environments:

# Automatically create config files without user interaction
OPEN_NEXTJS_NO_INTERACTIVE_PROMPT=true azion build --preset opennextjs

Or add to your .env file:

OPEN_NEXTJS_NO_INTERACTIVE_PROMPT=true

This is particularly useful for remote builds, CI/CD pipelines, and automated deployments where user interaction is not possible.

NEXT_PRIVATE_DEBUG_CACHE

Enables detailed cache debugging logs for troubleshooting cache-related issues.

  • Default: undefined (no debug logs)
  • Values:
    • "true": Enables detailed cache operation logs
    • Any other value or unset: Normal logging (default behavior)

Usage for debugging:

# Enable cache debugging
NEXT_PRIVATE_DEBUG_CACHE=true azion build --preset opennextjs

Or add to your .env file:

NEXT_PRIVATE_DEBUG_CACHE=true

This will show detailed information about cache operations, including cache keys, storage operations, and any cache-related errors.

Turbopack Support (Next.js 16+)

OpenNext for Azion supports both webpack and Turbopack builds. Next.js 16 uses Turbopack by default, and the adapter runs the build command of your project as is: it does not force a bundler.

To keep building with webpack, add the --webpack flag to the build script of your package.json:

{
  "scripts": {
    "build": "next build --webpack"
  }
}

Node.js Middleware (proxy.ts)

Next.js 16 replaces middleware.ts with proxy.ts, which always runs on the Node.js runtime. OpenNext for Azion bundles it into a self-contained middleware for both webpack and Turbopack builds.

This support is experimental: it re-bundles the middleware compiled by Next.js, which is an internal output that can change between Next.js versions. The build logs a warning when a Node.js middleware is detected.