From f0e4afaa1f629e85f52d78dc127f00075e1e422c Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Sat, 9 Mar 2024 14:49:21 -0500 Subject: [PATCH] chore: vercel --- src/cli/commands/vercel-build.ts | 8 ++++++++ src/dev/routes.tsx | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cli/commands/vercel-build.ts b/src/cli/commands/vercel-build.ts index 79c3e62b..c2eac64b 100644 --- a/src/cli/commands/vercel-build.ts +++ b/src/cli/commands/vercel-build.ts @@ -21,8 +21,16 @@ export async function build() { ensureDirSync('./.vercel/output') ensureDirSync('./.vercel/output/static') + if (pathExistsSync('./public')) copySync('./public', './.vercel/output/static') + + ensureDirSync('./.vercel/output/static/static') + copySync( + './node_modules/frog/_lib/dev/static', + './.vercel/output/static/static', + ) + writeJsonSync('./.vercel/output/config.json', { version: 3, routes: [ diff --git a/src/dev/routes.tsx b/src/dev/routes.tsx index 28e0dae6..afab5df1 100644 --- a/src/dev/routes.tsx +++ b/src/dev/routes.tsx @@ -104,7 +104,6 @@ export function routes< if (text.includes(ngrokHostname)) text = text.replace(ngrokHttpRegex, 'https$2') - console.log({ text }) const metadata = htmlToMetadata(text) const { context, frame } = metadata