File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
packages/cloudflare/src/cli/commands Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ export type WithWranglerArgs<T = unknown> = T & {
1818
1919const 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+ */
2129export 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+ */
4661export 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" ) ;
You can’t perform that action at this time.
0 commit comments