Skip to content

The Open Standard for Generative UI

Add immediate CLI dev startup (#886)

Zahle Khan6cbf0dd6410d
diff --git a/docs/content/docs/api-reference/cli.mdx b/docs/content/docs/api-reference/cli.mdx
index 6ae7655db..11550fb74 100644
--- a/docs/content/docs/api-reference/cli.mdx
+++ b/docs/content/docs/api-reference/cli.mdx
@@ -55,17 +55,21 @@ openui create [options]
| Flag | Description |
| --------------------------- | ---------------------------------------------------------------- |
-| `-n, --name <string>` | Project name (directory to create) |
+| `-n, --name <string>` | Project name (interactive default: `openui-agent`) |
| `-t, --template <template>` | AI backend: `openui-cloud` (recommended) or `openui-self-hosted` |
| `--api-key <key>` | OpenUI Cloud API key; skips sign-in for the Cloud setup |
| `--auth <method>` | Cloud auth method: `oauth`, `manual`, or `skip` |
| `--skill` | Install the OpenUI agent skill for AI coding assistants |
| `--no-skill` | Skip installing the OpenUI agent skill |
| `--no-install` | Scaffold without running dependency installation |
+| `-i, --immediate` | Start the development server after installing dependencies |
+| `--no-immediate` | Install dependencies without starting the development server |
| `--no-interactive` | Fail instead of prompting for missing input |
| `--agent-name <name>` | Declare the invoking coding-agent slug (default: `unknown`) |
-When run interactively (default), the CLI prompts for any missing options. For most prototypes and evaluations, start with **OpenUI Cloud, the recommended default**: hosted models, managed conversation history and streaming, built-in tools, and ready-to-use reports and presentations without operating the model, storage, or artifact infrastructure. Choose **self-hosted** when owning the OpenAI-compatible provider, AI route, and persistence is a requirement. Pass `--no-interactive` in CI or scripted environments to surface missing required flags as errors instead.
+When run interactively (default), the CLI prompts for any missing options, then asks whether to start the development server after installing dependencies with the detected package manager. The start prompt defaults to yes; answering no preserves the existing install-and-exit behavior and prints the `cd` and dev commands. For most prototypes and evaluations, start with **OpenUI Cloud, the recommended default**: hosted models, managed conversation history and streaming, built-in tools, and ready-to-use reports and presentations without operating the model, storage, or artifact infrastructure. Choose **self-hosted** when owning the OpenAI-compatible provider, AI route, and persistence is a requirement.
+
+In non-interactive mode, dependencies are installed without starting the long-running development server. Pass `--immediate` to install and start, `--no-immediate` to make the install-and-exit behavior explicit, or `--no-install` to scaffold only.
**What it does**
@@ -75,7 +79,7 @@ When run interactively (default), the CLI prompts for any missing options. For m
4. Writes the relevant `.env` values, including Thesys sign-in/API-key setup for OpenUI Cloud
5. Optionally installs the [OpenUI agent skill](/docs/openui-lang/agent-skill) for AI coding assistants (e.g. Claude, Cursor, Copilot)
6. Auto-detects your package manager (npm, pnpm, yarn, bun)
-7. Installs dependencies
+7. Installs dependencies unless skipped, then optionally starts the development server in the generated directory
The generated project includes a `generate:prompt` script that runs `openui generate` as part of `dev` and `build`.
@@ -94,6 +98,7 @@ pnpx @openuidev/cli@latest create
# Select an AI setup explicitly
pnpx @openuidev/cli@latest create --name my-app --template openui-cloud
pnpx @openuidev/cli@latest create --name my-app --template openui-self-hosted
+pnpx @openuidev/cli@latest create --name my-app --template openui-cloud --immediate
# Non-interactive
pnpx @openuidev/cli@latest create --no-interactive --name my-app --template openui-cloud --auth skip
@@ -326,8 +331,9 @@ Usage analytics include two independent properties: `agent_name`, declared throu
and `detected_agent_name`, inferred best-effort from known product environment markers. Either
value can be spoofed, inherited, missing, or ambiguous, so neither should be treated as an
authentication or security signal. For `create`, analytics also include `package_manager`, the
-manager selected for dependency installation (`npm`, `pnpm`, `yarn`, or `bun`). Use
-`--no-telemetry` or `DO_NOT_TRACK=1` to disable collection.
+immediate-start selection, and best-effort dev-command start and result events. Dev-command events
+contain status, duration, exit code, and signal—not project paths, command output, code, or
+environment values. Use `--no-telemetry` or `DO_NOT_TRACK=1` to disable collection.
## See also
diff --git a/packages/openui-cli/README.md b/packages/openui-cli/README.md
index f26648d36..03ca72c51 100644
--- a/packages/openui-cli/README.md
+++ b/packages/openui-cli/README.md
@@ -63,11 +63,13 @@ openui create [options]
Options:
-- `-n, --name <string>`: Project name
+- `-n, --name <string>`: Project name (interactive default: `openui-agent`)
- `-t, --template <template>`: AI backend — `openui-cloud` (managed) or `openui-self-hosted` (bring your provider)
- `--skill`: Install the OpenUI agent skill for AI coding assistants
- `--no-skill`: Skip installing the OpenUI agent skill
- `--no-install`: Scaffold without running the package install
+- `-i, --immediate`: Start the development server after installing dependencies
+- `--no-immediate`: Install dependencies without starting the development server
- `--no-interactive`: Fail instead of prompting for missing required input
- `--api-key <key>`: (cloud template) OpenUI Cloud API key; skips sign-in
- `--auth <method>`: (cloud template) How to obtain the key — `oauth`, `manual`, or `skip`
@@ -75,11 +77,13 @@ Options:
What it does:
-- prompts for the project name if you do not pass `--name`
+- prompts for the project name, defaulting to `openui-agent`, if you do not pass `--name`
- prompts for the template if you do not pass `--template`
- copies the bundled template into a new directory
- rewrites monorepo-local dependencies (`workspace:`, `file:`, `catalog:`) in the generated `package.json` to `latest`
+- asks whether to start the development server after dependency installation (default: yes); answering no preserves the install-and-exit behavior
- installs dependencies automatically using the detected package manager (unless `--no-install`)
+- in non-interactive mode, installs dependencies without starting the server unless overridden with `--immediate`
- optionally installs the OpenUI agent skill for AI coding assistants
- writes a `.env` file tailored to the template (see below)
@@ -106,6 +110,8 @@ openui create
openui create --name my-app --template openui-cloud --auth oauth
openui create --name my-app --template openui-cloud --api-key tk_your_key
openui create --name my-app --template openui-self-hosted
+openui create --name my-app --template openui-cloud --immediate
+openui create --name my-app --template openui-cloud --no-immediate
openui create --name my-app --no-skill --no-install
openui create --no-interactive --name my-app --template openui-cloud --api-key tk_your_key
```
@@ -195,7 +201,7 @@ The CLI sends usage analytics; OAuth sign-ins may link usage to your OIDC accoun
When a coding agent invokes the CLI, it should pass `--agent-name` using its stable, lowercase kebab-case product slug—for example, `codex`, `claude-code`, `cline`, `factory-droid`, or `pi`. Do not pass a model/version, user name, session ID, or other unique value. Humans can omit the flag; it defaults to `unknown`.
-Telemetry includes both `agent_name` (the CLI declaration) and `detected_agent_name` (best-effort environment detection). Either can be spoofed, inherited, missing, or ambiguous; neither is an authentication signal. For `create`, telemetry also includes `package_manager`, the manager selected for dependency installation (`npm`, `pnpm`, `yarn`, or `bun`). Disable telemetry with `--no-telemetry` or `DO_NOT_TRACK=1`.
+Telemetry includes both `agent_name` (the CLI declaration) and `detected_agent_name` (best-effort environment detection). Either can be spoofed, inherited, missing, or ambiguous; neither is an authentication signal. For `create`, telemetry also includes `package_manager`, the immediate-start selection, and best-effort dev-command start and result events. Dev-command events contain status, duration, exit code, and signal—not project paths, command output, code, or environment values. Disable telemetry with `--no-telemetry` or `DO_NOT_TRACK=1`.
```bash
openui create --no-telemetry
diff --git a/packages/openui-cli/package.json b/packages/openui-cli/package.json
index ae063123a..749c482ad 100644
--- a/packages/openui-cli/package.json
+++ b/packages/openui-cli/package.json
@@ -22,6 +22,7 @@
"ci": "pnpm run lint:check && pnpm run format:check"
},
"devDependencies": {
+ "@types/cross-spawn": "^6.0.6",
"@types/node": "catalog:",
"rimraf": "^5.0.7"
},
@@ -53,6 +54,7 @@
"@inquirer/core": "^11.1.5",
"@inquirer/prompts": "^8.3.0",
"commander": "^14.0.3",
+ "cross-spawn": "^7.0.6",
"esbuild": "^0.25.10",
"open": "^10.1.0",
"openid-client": "^6.1.7",
diff --git a/packages/openui-cli/src/commands/create-app.ts b/packages/openui-cli/src/commands/create-app.ts
index cdcfc481b..53535f0fe 100644
--- a/packages/openui-cli/src/commands/create-app.ts
+++ b/packages/openui-cli/src/commands/create-app.ts
@@ -1,4 +1,4 @@
-import { execSync } from "node:child_process";
+import spawn from "cross-spawn";
import * as fs from "node:fs";
import * as os from "node:os";
import * as path from "node:path";
@@ -6,11 +6,23 @@ import * as path from "node:path";
import { resolveCloudApiKey, THESYS_KEYS_URL } from "../auth/mint";
import { aiSetupFromTemplate, createFunnelProps } from "../lib/create-telemetry";
import type { CreateAppOptions, EnvResult, TemplateName } from "../lib/create-types";
-import { resolveInstallPackageManager } from "../lib/detect-package-manager";
+import {
+ resolveInstallPackageManager,
+ type PackageManagerName,
+} from "../lib/detect-package-manager";
import { runSkillInstall, shouldInstallSkill } from "../lib/install-skill";
import { resolveArgs } from "../lib/resolve-args";
import { CreateError, telemetry } from "../lib/telemetry";
+function runCommand(command: string, args: string[], cwd: string) {
+ return spawn.sync(command, args, { cwd, stdio: "inherit" });
+}
+
+function errorCode(error: Error): string {
+ const code = (error as NodeJS.ErrnoException).code;
+ return typeof code === "string" ? code : "UNKNOWN";
+}
+
function shouldCopyTemplatePath(templateDir: string, src: string): boolean {
const rel = path.relative(templateDir, src);
if (!rel) return true;
@@ -38,7 +50,7 @@ function buildAppId(name: string): string {
return `${slug}-${Math.random().toString(36).slice(2, 8)}`;
}
-function rewritePackageJson(projectDir: string, name: string) {
+function rewritePackageJson(projectDir: string, name: string, packageManager: PackageManagerName) {
// package.json: set the project name and de-vendor monorepo-local deps
// (workspace:* / file: / catalog:) to the published "latest". link: deps are
// rewritten to an absolute file: path so locally-linked packages (e.g.
@@ -50,8 +62,10 @@ function rewritePackageJson(projectDir: string, name: string) {
name: string;
dependencies?: Record<string, string>;
devDependencies?: Record<string, string>;
+ pnpm?: unknown;
};
pkg.name = name;
+ if (packageManager !== "pnpm") delete pkg.pnpm;
for (const section of ["dependencies", "devDependencies"] as const) {
const deps = pkg[section];
if (!deps) continue;
@@ -112,13 +126,17 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
has_api_key_arg: Boolean(options.apiKey),
has_auth_arg: Boolean(options.auth),
no_install: Boolean(options.noInstall),
+ immediate_arg: options.immediate,
});
const args = await resolveArgs(
{
name: options.name
? { value: options.name }
- : { prompt: { type: "input", message: "Project name?" }, required: true },
+ : {
+ prompt: { type: "input", message: "Project name?", default: "openui-agent" },
+ required: true,
+ },
template: options.template
? { value: options.template }
: {
@@ -182,6 +200,23 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
? await resolveChatEnv(interactive)
: await resolveCloudEnv(name, options, interactive);
+ const installSkill = await shouldInstallSkill(options.skill, interactive);
+ telemetry.capture("cli_skill_installed", {
+ ...createFunnelProps("skill_prompt_resolved"),
+ skill_installed: installSkill,
+ });
+
+ const immediateResolution = await resolveImmediate(
+ options.immediate,
+ options.noInstall,
+ interactive,
+ );
+ telemetry.capture("cli_immediate_selected", {
+ immediate: immediateResolution.immediate,
+ dependency_install_requested: immediateResolution.installDependencies,
+ selection_source: immediateResolution.source,
+ });
+
console.info(`\nScaffolding ${template} into "${name}"...\n`);
telemetry.capture("cli_scaffold_started", {
...createFunnelProps("scaffold_started"),
@@ -194,11 +229,18 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
filter: (src) => shouldCopyTemplatePath(templateDir, src),
});
restoreDotfiles(targetDir);
- rewritePackageJson(targetDir, name);
- // The template lockfile enables npm ci; other managers should resolve from package.json.
+ rewritePackageJson(targetDir, name, packageManager.name);
+ // npm ci requires the copied package-lock; other managers resolve from package.json.
if (packageManager.name !== "npm") {
fs.rmSync(path.join(targetDir, "package-lock.json"), { force: true });
}
+ // The Cloud template ships pnpm's lock/workspace files for reproducible pnpm
+ // installs and native-build policy. They are irrelevant to npm/yarn/bun and
+ // can confuse workspace-root detection, so keep them only for pnpm scaffolds.
+ if (packageManager.name !== "pnpm") {
+ fs.rmSync(path.join(targetDir, "pnpm-lock.yaml"), { force: true });
+ fs.rmSync(path.join(targetDir, "pnpm-workspace.yaml"), { force: true });
+ }
} catch (err) {
captureScaffoldFailed();
throw err;
@@ -219,11 +261,6 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
auth_succeeded: envResult.authSucceeded,
});
- const installSkill = await shouldInstallSkill(options.skill, interactive);
- telemetry.capture("cli_skill_installed", {
- ...createFunnelProps("skill_prompt_resolved"),
- skill_installed: installSkill,
- });
if (installSkill) {
telemetry.capture("cli_skill_install_started", {
...createFunnelProps("skill_install_started"),
@@ -239,7 +276,10 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
const installCmd = packageManager.installCmd;
let dependencyInstalled = false;
- if (options.noInstall) {
+ if (!immediateResolution.installDependencies) {
+ telemetry.capture("cli_dependency_install_skipped", {
+ skip_reason: "no_install_flag",
+ });
console.info(`Skipping dependency install (--no-install). Run \`${installCmd}\` later.\n`);
} else {
console.info(`Installing dependencies with: ${installCmd}\n`);
@@ -248,8 +288,8 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
template,
ai_setup: aiSetup,
});
- try {
- execSync(installCmd, { stdio: "inherit", cwd: targetDir });
+ const installResult = runCommand(packageManager.runCmd, packageManager.installArgs, targetDir);
+ if (!installResult.error && installResult.status === 0) {
dependencyInstalled = true;
telemetry.capture("cli_dependency_install_succeeded", {
...createFunnelProps("dependency_install_succeeded"),
@@ -257,7 +297,7 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
ai_setup: aiSetup,
dependency_installed: dependencyInstalled,
});
- } catch {
+ } else {
telemetry.capture("cli_dependency_install_failed", {
...createFunnelProps("dependency_install_failed"),
template,
@@ -269,6 +309,7 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
}
const devCmd = packageManager.runCmd;
+ const startDev = immediateResolution.immediate && dependencyInstalled;
telemetry.capture("cli_create_succeeded", {
...createFunnelProps("create_succeeded"),
@@ -286,8 +327,101 @@ export async function runCreateApp(options: CreateAppOptions): Promise<void> {
template,
skillInstalled: installSkill,
envWritten: envResult.envWritten,
+ startDev,
+ installCmd,
+ dependencyInstalled,
}),
);
+
+ if (!startDev) {
+ telemetry.capture("cli_dev_command_skipped", {
+ skip_reason: options.noInstall ? "dependencies_not_installed" : "not_immediate",
+ });
+ return;
+ }
+
+ const devStartedAt = Date.now();
+ telemetry.capture("cli_dev_command_started", {
+ package_manager: packageManager.name,
+ });
+ const devResult = runCommand(devCmd, ["run", "dev"], targetDir);
+ const durationMs = Math.max(0, Date.now() - devStartedAt);
+ const stoppedNormally =
+ devResult.status === 0 ||
+ devResult.status === 130 ||
+ devResult.status === 143 ||
+ devResult.signal === "SIGINT" ||
+ devResult.signal === "SIGTERM";
+
+ if (stoppedNormally) {
+ telemetry.capture("cli_dev_command_stopped", {
+ package_manager: packageManager.name,
+ duration_ms: durationMs,
+ exit_code: devResult.status,
+ signal: devResult.signal,
+ });
+ } else {
+ const exitCode = devResult.status ?? 1;
+ telemetry.capture("cli_dev_command_failed", {
+ package_manager: packageManager.name,
+ duration_ms: durationMs,
+ failure_reason: devResult.error ? "spawn_error" : "nonzero_exit",
+ exit_code: exitCode,
+ signal: devResult.signal,
+ ...(devResult.error ? { error_code: errorCode(devResult.error) } : {}),
+ });
+ console.error(
+ `\nDevelopment server exited. Retry with:\n\n> cd ${name}\n> ${devCmd} run dev\n`,
+ );
+ process.exitCode = exitCode;
+ }
+}
+
+const isInteractiveTerminal = () => Boolean(process.stdin.isTTY && process.stdout.isTTY);
+
+async function resolveImmediate(
+ immediate: boolean | undefined,
+ noInstall: boolean | undefined,
+ interactive: boolean,
+): Promise<{
+ immediate: boolean;
+ installDependencies: boolean;
+ source: "flag" | "interactive_prompt" | "no_install" | "noninteractive_default";
+}> {
+ if (noInstall) {
+ return { immediate: false, installDependencies: false, source: "no_install" };
+ }
+ if (immediate !== undefined) {
+ return {
+ immediate,
+ installDependencies: true,
+ source: "flag",
+ };
+ }
+ if (!interactive || !isInteractiveTerminal()) {
+ return {
+ immediate: false,
+ installDependencies: true,
+ source: "noninteractive_default",
+ };
+ }
+
+ try {
+ const { confirm } = await import("@inquirer/prompts");
+ const selected = await confirm({
+ message: "Start dev server after install?",
+ default: true,
+ });
+ return {
+ immediate: selected,
+ installDependencies: true,
+ source: "interactive_prompt",
+ };
+ } catch (error) {
+ const { ExitPromptError } = await import("@inquirer/core");
+ if (error instanceof ExitPromptError) process.exit(0);
+ throw error;
+ }
}
async function writeEnv(targetDir: string, result: EnvResult, appId?: string): Promise<void> {
@@ -362,6 +496,9 @@ function getStartedMessage(o: {
template: TemplateName;
skillInstalled: boolean;
envWritten: boolean;
+ startDev: boolean;
+ installCmd: string;
+ dependencyInstalled: boolean;
}): string {
const skillMessage = o.skillInstalled
? "The OpenUI agent skill was installed.\nAI coding assistants will use it to help you build with OpenUI.\n"
@@ -376,12 +513,19 @@ function getStartedMessage(o: {
? "✅ .env created with your API key."
: "Add your API key to .env:\nOPENAI_API_KEY=sk-your-key-here";
+ const nextStep = o.startDev
+ ? `Starting the development server in "${o.name}"...\n\n> ${o.devCmd} run dev`
+ : [
+ `> cd ${o.name}`,
+ ...(o.dependencyInstalled ? [] : [`> ${o.installCmd}`]),
+ `> ${o.devCmd} run dev`,
+ ].join("\n");
+
return `${skillMessage}
Done!
${envNote}
-> cd ${o.name}
-> ${o.devCmd} run dev
+${nextStep}
`;
}
diff --git a/packages/openui-cli/src/index.ts b/packages/openui-cli/src/index.ts
index 447b561ff..70487b83b 100644
--- a/packages/openui-cli/src/index.ts
+++ b/packages/openui-cli/src/index.ts
@@ -46,7 +46,7 @@ program
.description(
"Scaffold a Next.js agent app with the recommended OpenUI Cloud backend or your own provider",
)
- .option("-n, --name <string>", "Project name")
+ .option("-n, --name <string>", "Project name (interactive default: openui-agent)")
.option(
"-t, --template <template>",
"AI backend: openui-cloud (recommended default) | openui-self-hosted (infrastructure control)",
@@ -57,6 +57,8 @@ program
.option("--no-skill", "Skip installing the OpenUI agent skill")
.option("--no-interactive", "Fail with error if required args are missing")
.option("--no-install", "Scaffold without running the package install")
+ .option("-i, --immediate", "Start the development server after installing dependencies")
+ .option("--no-immediate", "Install dependencies without starting the development server")
.addHelpText(
"after",
`
@@ -78,6 +80,7 @@ Templates:
skill?: boolean;
interactive: boolean;
install: boolean;
+ immediate?: boolean;
}) => {
try {
await runCreateApp({
@@ -88,6 +91,7 @@ Templates:
skill: options.skill,
noInteractive: !options.interactive,
noInstall: !options.install,
+ immediate: options.immediate,
});
} catch (e) {
handleCliError(e, "cli_create_failed");
diff --git a/packages/openui-cli/src/lib/create-types.ts b/packages/openui-cli/src/lib/create-types.ts
index 4f57050b5..aa38a849f 100644
--- a/packages/openui-cli/src/lib/create-types.ts
+++ b/packages/openui-cli/src/lib/create-types.ts
@@ -8,6 +8,7 @@ export interface CreateAppOptions {
skill?: boolean;
noInteractive?: boolean;
noInstall?: boolean;
+ immediate?: boolean;
apiKey?: string;
auth?: CloudAuthMethod;
}
diff --git a/packages/openui-cli/src/lib/detect-package-manager.ts b/packages/openui-cli/src/lib/detect-package-manager.ts
index bebab385a..73f07963c 100644
--- a/packages/openui-cli/src/lib/detect-package-manager.ts
+++ b/packages/openui-cli/src/lib/detect-package-manager.ts
@@ -3,16 +3,18 @@ export type PackageManagerName = "pnpm" | "yarn" | "bun" | "npm";
export interface PackageManager {
name: PackageManagerName;
installCmd: string;
+ installArgs: string[];
runCmd: string;
}
const PACKAGE_MANAGERS: Record<PackageManagerName, PackageManager> = {
- pnpm: { name: "pnpm", installCmd: "pnpm install", runCmd: "pnpm" },
- yarn: { name: "yarn", installCmd: "yarn", runCmd: "yarn" },
- bun: { name: "bun", installCmd: "bun install", runCmd: "bun" },
+ pnpm: { name: "pnpm", installCmd: "pnpm install", installArgs: ["install"], runCmd: "pnpm" },
+ yarn: { name: "yarn", installCmd: "yarn", installArgs: [], runCmd: "yarn" },
+ bun: { name: "bun", installCmd: "bun install", installArgs: ["install"], runCmd: "bun" },
npm: {
name: "npm",
installCmd: "npm ci --prefer-offline --no-audit --no-fund --progress=false",
+ installArgs: ["ci", "--prefer-offline", "--no-audit", "--no-fund", "--progress=false"],
runCmd: "npm",
},
};
diff --git a/packages/openui-cli/src/templates/openui-cloud/next.config.ts b/packages/openui-cli/src/templates/openui-cloud/next.config.ts
index 68a6c64d2..30ac02797 100644
--- a/packages/openui-cli/src/templates/openui-cloud/next.config.ts
+++ b/packages/openui-cli/src/templates/openui-cloud/next.config.ts
@@ -1,7 +1,11 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
+ allowedDevOrigins: ["127.0.0.1"],
output: "standalone",
+ turbopack: {
+ root: process.cwd(),
+ },
};
export default nextConfig;
diff --git a/packages/openui-cli/src/templates/openui-self-hosted/next.config.ts b/packages/openui-cli/src/templates/openui-self-hosted/next.config.ts
index cb651cdc0..3a4549087 100644
--- a/packages/openui-cli/src/templates/openui-self-hosted/next.config.ts
+++ b/packages/openui-cli/src/templates/openui-self-hosted/next.config.ts
@@ -1,5 +1,10 @@
import type { NextConfig } from "next";
-const nextConfig: NextConfig = {};
+const nextConfig: NextConfig = {
+ allowedDevOrigins: ["127.0.0.1"],
+ turbopack: {
+ root: process.cwd(),
+ },
+};
export default nextConfig;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c833b9f96..2851c4109 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1731,6 +1731,9 @@ importers:
commander:
specifier: ^14.0.3
version: 14.0.3
+ cross-spawn:
+ specifier: ^7.0.6
+ version: 7.0.6
esbuild:
specifier: ^0.25.10
version: 0.25.12
@@ -1744,6 +1747,9 @@ importers:
specifier: ^5.35.6
version: 5.39.0([email protected])
devDependencies:
+ '@types/cross-spawn':
+ specifier: ^6.0.6
+ version: 6.0.6
'@types/node':
specifier: 'catalog:'
version: 22.19.19
@@ -9830,6 +9836,9 @@ packages:
resolution: {integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA==}
+
resolution: {integrity: sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==}
@@ -29586,6 +29595,10 @@ snapshots:
dependencies:
'@types/node': 24.13.2
+ '@types/[email protected]':
+ dependencies:
+ '@types/node': 24.13.2
+
'@types/[email protected]': {}