History

Update Vercel configuration and Next.js settings

- Adjusted vercel.json to set the build command and maintain the framework specification for Next.js. - Enhanced next.config.ts to define the turbopack root using the workspace directory, ensuring proper resolution of workspace packages.

Rhys Sullivan committed 9 months ago

Commit 52000241 parent bdf780d2 files · +9 −8Browse files

Unified · Split

2 files
  1. executor/apps/web/next.config.ts +7 −5
  2. executor/vercel.json +2 −3
executor/apps/web/next.config.ts+7−5
@@ -1,11 +1,13 @@
11 import type { NextConfig } from "next";
2+import path from "node:path";
3+import { fileURLToPath } from "node:url";
4+
5+const workspaceRoot = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", "..");
26
37 const nextConfig: NextConfig = {
4− // Required for Turbopack (Next.js 16 default) – even if empty,
5− // it silences the "no turbopack config" warning.
6− turbopack: {},
7− // Transpile workspace packages so Next.js resolves their raw .ts sources
8− // when they appear in the type graph (e.g. convex/database.ts imports @executor/contracts).
8+ turbopack: {
9+ root: workspaceRoot,
10+ },
911 transpilePackages: ["@executor/contracts"],
1012 };
1113
executor/vercel.json+2−3
@@ -1,7 +1,6 @@
11 {
22 "$schema": "https://openapi.vercel.sh/vercel.json",
3− "buildCommand": "bun run --cwd apps/web build",
4− "outputDirectory": "apps/web/.next",
3+ "framework": "nextjs",
54 "installCommand": "bun install",
6− "framework": "nextjs"
5+ "buildCommand": "bun run --cwd apps/web build"
76 }