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