-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Using astro with @astrojs/netlify does not allow running preview locally #13180
Comments
I am seeing the same. Right now I am using the node-adaptor as a temporary workaround: in my astro.config.mjs file:
In my package.json I then have a build command I only use locally - with a --node flag:
This runs on http though - and right now causes a few issues to me - so kind of a pain. I had no issues previously running the preview command using the netlify-adaptor v5.5.4 - but fails on v6.0.1 Edit: I have switched to using the Netlify CLI locally where I can run |
That's expected. The netlify adapter doesn't provide a preview command. You might want to evaluate the |
Well who maintains the adapter and how can we ask them to provide a preview command then? The two repos that hold the netlify adapters are both showing as archived as far as I can tell. |
@richwklein the packages have been moved here, in the main monorepo. That's written in the main readme of the adapters repository. I closed the issue because it's not a bug. You're still free to send a PR if you think it's a good addition |
Astro Info
Describe the Bug
I'm using the netlify adapter. When I try to run the
astro preview
command locally, I get the error.What's the expected result?
I would expect I would be able to run preview locally to test the output of the build locally.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ggno1pvr?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: