Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem trying to depoly site #31

Open
frako23 opened this issue Feb 24, 2024 · 1 comment
Open

problem trying to depoly site #31

frako23 opened this issue Feb 24, 2024 · 1 comment

Comments

@frako23
Copy link

frako23 commented Feb 24, 2024

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.`

@ChristineTham
Copy link
Collaborator

ChristineTham commented Mar 4, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants