@aziontech/opennextjs-azion
Version:
Azion builder for next apps
11 lines (10 loc) • 617 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.
*/
/**
* Inline `getBuildId` as it relies on `readFileSync` that is not supported by workerd.
*/
import type { ContentUpdater, Plugin } from "@opennextjs/aws/plugins/content-updater.js";
export declare function inlineBuildId(updater: ContentUpdater): Plugin;
export declare const rule = "\nrule:\n kind: method_definition\n has:\n field: name\n regex: ^getBuildId$\nfix: |-\n getBuildId() {\n return process.env.NEXT_BUILD_ID;\n }\n";