#serverless vercel

3 messages · Page 1 of 1 (latest)

swift crow
#

I have a blank Astro build with the following config:

import { defineConfig } from 'astro/config';
import vercelServerless from '<@&1055234544183287879>/vercel/serverless';

export default defineConfig({

// Vercel
output: "server",
adapter: vercelServerless()
});

But no matter what I do, whenever I push to Vercel I get the following error in the logs:

RequestId: bd47d600-5cd0-479f-a59f-1e50d4a9c103 Error: Runtime exited with error: exit status 1
Runtime.ExitError

wide etherBOT
#

Hi @swift crow. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the extracts, it's not clear what the exact cause of the error is. However, there are a few known issues with Astro and Vercel that might be related to your problem.

One issue is related to the @astrojs/node integration. If you see a SyntaxError: Named export ‘compile’ not found when running the entry script, you can add "path-to-regexp" to the noExternal array in your astro.config.mjs file as a workaround (source (https://docs.astro.build/en/guides/integrations-guide/node/)).

Another known issue is that some complex packages, like Puppeteer, do not support bundling and therefore will not work properly with the @astrojs/vercel adapter (source (https://docs.astro.build/en/guides/integrations-guide/vercel/)).

There are also a couple of open issues on GitHub related to Vercel deployments. One is about includeFiles being ignored for hybrid API routes with prerender = false (source (https://github.com/withastro/astro/issues/8402)), and another is about assets and middleware crashing when using Vercel serverless (source (https://github.com/withastro/astro/issues/8014)).

If none of these issues seem to apply to your situation, I would recommend reaching out to the Astro community for support. You can check out the #support channel on Discord (https://astro.build/chat) or look at the Astro Integration Documentation (https://docs.astro.build/en/guides/integrations-guide/) for more information on integrations.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: