@aziontech/opennextjs-azion
Version:
Azion builder for Next.js apps
11 lines (10 loc) • 493 B
TypeScript
/**
* Creates a `open-next.config.ts` file for the user if it doesn't exist, but only after asking for the user's confirmation.
*
* If OPEN_NEXTJS_NO_INTERACTIVE_PROMPT environment variable is set to 'true', automatically creates the file without asking.
*
* If the user refuses an error is thrown (since the file is mandatory).
*
* @param sourceDir The source directory for the project
*/
export declare function createOpenNextConfigIfNotExistent(sourceDir: string): Promise<string>;