Skip to content

Commit 776c1c5

Browse files
committed
jsdoc comments
1 parent 28e836a commit 776c1c5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/cloudflare/src/cli/commands/setup-cli.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ export type WithWranglerArgs<T = unknown> = T & {
1818

1919
const nextAppDir = process.cwd();
2020

21+
/**
22+
* Setup the CLI, print necessary messages, and retrieve various options and configs.
23+
*
24+
* @param command
25+
* @param args
26+
* @param getOpenNextConfig - Function that resolves to a config file
27+
* @returns CLI options, OpenNext config, and Wrangler config
28+
*/
2129
export async function setupCLI(
2230
command: string,
2331
args: WithWranglerArgs,
@@ -43,6 +51,13 @@ export async function setupCLI(
4351
return { options, config, wranglerConfig, baseDir };
4452
}
4553

54+
/**
55+
* Setup the CLI, print necessary messages, and resolve the compiled OpenNext config.
56+
*
57+
* @param command
58+
* @param args
59+
* @returns CLI config
60+
*/
4661
export function setupCompiledAppCLI(command: string, args: WithWranglerArgs) {
4762
return setupCLI(command, args, async (baseDir) => {
4863
const configPath = path.join(baseDir, ".open-next/.build/open-next.config.edge.mjs");

0 commit comments

Comments
 (0)