hello-astro icon indicating copy to clipboard operation
hello-astro copied to clipboard

problem trying to depoly site

Open frako23 opened this issue 1 year ago • 1 comments

Hi!

i've tried to deploy your site on github pages, vercel and netlify and it has been impossible

when trying pnpm preview my terminal shows this error

`$ pnpm preview

[email protected] preview C:\Users\USUARIO\Desktop\Programación\Proyectos\hello-astro astro preview [preview] The @astrojs/vercel/serverless adapter does not support the preview command. Stack trace: at preview (file:///C:/Users/USUARIO/Desktop/Programaci%C3%B3n/Proyectos/hello-astro/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/core/preview/index.js:31:11) at async runCommand (file:///C:/Users/USUARIO/Desktop/Programaci%C3%B3n/Proyectos/hello-astro/node_modules/.pnpm/[email protected][email protected]/node_modules/astro/dist/cli/index.js:129:22)  ELIFECYCLE  Command failed with exit code 1.`

frako23 avatar Feb 24 '24 15:02 frako23

Hi are you still experiencing this problem?

I am not able to replicate your issue (I am using a Mac and node 20):

$ pnpm preview

> [email protected] preview /Volumes/Data/github/hello-astro
> astro preview


 astro  v4.0.7 ready in 5 ms

┃ Local    http://localhost:4321/hello-astro/
┃ Network  use --host to expose

I noticed your error is related to using the @astrojs/vercel/serverless adapter. This adapter is not part of the source base, did you add it separately?

ChristineTham avatar Mar 04 '24 05:03 ChristineTham