From aedc46c8ad7c241dcd97d88ab4e58ec8bcfabb4e Mon Sep 17 00:00:00 2001 From: Alaister Young <10985857+alaister@users.noreply.github.com> Date: Wed, 22 Apr 2026 01:25:02 +0800 Subject: [PATCH] fix(studio): export vercel.ts config as named 'config' not default Per the @vercel/config docs, vercel.ts must expose a named `config` export for Vercel's build pipeline to pick it up. The default export was compiling to a shape Vercel rejected with a misleading "rewrites[0] missing required property source" error. --- apps/studio/vercel.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/studio/vercel.ts b/apps/studio/vercel.ts index 67731e62b5c..aa1021428e0 100644 --- a/apps/studio/vercel.ts +++ b/apps/studio/vercel.ts @@ -6,8 +6,7 @@ import type { VercelConfig } from '@vercel/config/v1' // these rules collapse to identity rewrites plus the shell fallback. const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? '' -// eslint-disable-next-line no-restricted-exports -export default { +export const config: VercelConfig = { framework: null, outputDirectory: 'dist/client', rewrites: [ @@ -30,4 +29,4 @@ export default { // gets served the prerendered shell, which boots the client router. { source: `${basePath}/(.*)`, destination: '/_shell.html' }, ], -} satisfies VercelConfig +}