From a60a7a3d1f9166110b07342f2b22b7b73fc327f3 Mon Sep 17 00:00:00 2001 From: Val Alexander Date: Wed, 1 Apr 2026 04:02:41 -0500 Subject: [PATCH 1/2] Fix marketing Vercel output config --- apps/marketing/next-env.d.ts | 2 +- apps/marketing/next.config.mjs | 3 +++ turbo.json | 4 ++++ vercel.json | 6 ++++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 vercel.json diff --git a/apps/marketing/next-env.d.ts b/apps/marketing/next-env.d.ts index c4b7818fb..9edff1c7c 100644 --- a/apps/marketing/next-env.d.ts +++ b/apps/marketing/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/dev/types/routes.d.ts"; +import "./.next/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/apps/marketing/next.config.mjs b/apps/marketing/next.config.mjs index bd3419136..8ee7a7de9 100644 --- a/apps/marketing/next.config.mjs +++ b/apps/marketing/next.config.mjs @@ -1,5 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + turbopack: { + root: new URL("../..", import.meta.url).pathname, + }, typescript: { ignoreBuildErrors: true, }, diff --git a/turbo.json b/turbo.json index c9471e538..040ee2c39 100644 --- a/turbo.json +++ b/turbo.json @@ -18,6 +18,10 @@ "dependsOn": ["^build"], "outputs": ["dist/**", "dist-electron/**"] }, + "@okcode/marketing#build": { + "dependsOn": ["^build"], + "outputs": [".next/**", "!.next/cache/**"] + }, "dev": { "dependsOn": ["@okcode/contracts#build"], "cache": false, diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..dc2a991dd --- /dev/null +++ b/vercel.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "buildCommand": "bun run build:marketing", + "installCommand": "bun install", + "outputDirectory": "apps/marketing/.next" +} From 9299f80d726030043a474ba8bf3c04ed8dd82170 Mon Sep 17 00:00:00 2001 From: Val Alexander Date: Wed, 1 Apr 2026 05:59:02 -0500 Subject: [PATCH 2/2] docs(marketing): note dependency install before build --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 5e8fa8655..24dd1679b 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,15 @@ bun dev:desktop # Electron desktop + web bun dev:marketing # Astro marketing site ``` +Build marketing directly: + +```bash +bun install +bun run build:marketing +``` + +If `bun run build:marketing` fails with `next: command not found`, run `bun install` first to restore workspace dependencies. + Quality checks: ```bash