#Error Building To Vercel's Edge

15 messages · Page 1 of 1 (latest)

twilit gulch
#

My Astro config file looks like this: ```import { defineConfig } from 'astro/config';
import robotsTxt from 'astro-robots-txt';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';

import vercel from '@astrojs/vercel/edge';

// https://astro.build/config
export default defineConfig({
site: 'https://knightowls.ca',
// Important!
// Only official '@astrojs/*' integrations are currently supported by Astro.
// Add 'experimental.integrations: true' to make 'astro-robots-txt' working
// with 'astro build' command.
experimental: {
integrations: true,
},
vite: {
ssr: {
external: ['svgo'],
},
},
integrations: [
react(),
robotsTxt({
sitemap: 'https://knightowls.ca/sitemap-0.xml',
}),
sitemap(),
],
output: 'server',
adapter: vercel(),
});

ocean quail
#

Hey, did you solve this. I have the same issue I think

rose oar
#

I also have the same problem

obtuse hill
#

What is the error? As much details as possible will help us diagnose the issue.

lyric sedge
#

Not sure if hes receiving the same error but i've been getting the following:

error ENOENT: no such file or directory, open '/Users/jrdn/Code/@andalways/frontend-next/apps/web/dist/.vc-config.json'

obtuse hill
#

That doesn't really look like an Astro specific error. This is the simplest repo I found demonstrating Vercel Edge deploy - https://github.com/JuanM04/astro-on-the-edge . Are you able to reproduce the issue using this repo? You may choose to update Astro and Vercel adapter to the version you are using.

GitHub

Contribute to JuanM04/astro-on-the-edge development by creating an account on GitHub.

lyric sedge
#

and the repo i am testing with is the basic templated repo using yarn create astro && yarn astro add vercel

obtuse hill
#

Nice find, thank you!

#

Yeah, this issue has been raised in the #vercel-archived integration channel by other folks as well. Hopefully the team can respond soon.

lyric sedge
#

Are you not apart of the team?

obtuse hill
#

Ah no, I help out with the support threads 🙂

#

The team has merged a fix for the issue you reported. It should be released soon.

obtuse hill