Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
1 reply
Tony

Astro Not Working on Vercel

I got an astro app with some react components. Dev server works fine and so is the build. When I deploy it to vercel I get code 500 error. Idk what I'm missing. This is my astro config file
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import image from "@astrojs/image";

// https://astro.build/config
import vercel from "@astrojs/vercel/serverless";

export default defineConfig({
  integrations: [
    tailwind(),
    react(),
    image({
      serviceEntryPoint: "@astrojs/image/sharp",
    }),
  ],
  output: "server",
  adapter: vercel(),
});


I also attached the vercel logs
SPOILER_Screenshot_from_2022-12-20_21-51-50.png
Was this page helpful?