@aziontech/opennextjs-azion
Version:
Azion builder for next apps
16 lines (15 loc) • 594 B
TypeScript
/**
* This code was originally copied and modified from the @opennextjs/cloudflare repository.
* Significant changes have been made to adapt it for use with Azion.
*/
/**
* ESBuild plugin to handle pages router context.
*
* We need to change the import path for the pages router context to use the one provided in `pages-runtime.prod.js`
*/
import { BuildOptions } from "@opennextjs/aws/build/helper.js";
import type { PluginBuild } from "esbuild";
export declare function patchPagesRouterContext(buildOpts: BuildOptions): {
name: string;
setup: (build: PluginBuild) => void;
};