#Vercel "serverless function has crashed" error for Astro project

6 messages · Page 1 of 1 (latest)

tight yacht
#

I have a blank Astro build with the following config:

import { defineConfig } from 'astro/config';
import vercelServerless from '@astrojs/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

Any advice on how to resolve this would be appreciated.

random urchinBOT
#
Still waiting for an answer?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

dusty thunder
#

Same here, not a very complex site, been troublshooting for hours but can't figure this one out.

dusty thunder
#

My site works as a static build, I wonder if it is because I am const posts = await useSanityClient() with Sanity on a SSR page?

high turret
#

heres the solution , just moved the deployment node version from 22x to 18x