-
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
[Pages] Update Astro guide for new adapter #14535
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jnmsl Thanks a lot for the PR! it looks great! 😄 ❤️
I've just left one minor comment other than that it should be good to go.
// use `AdvancedRuntime<ENV>` for advance runtime mode | ||
// use `DirectoryRuntime<ENV>` for directory runtime mode | ||
type Runtime = import("@astrojs/cloudflare").AdvancedRuntime<ENV>; | ||
type Runtime = import("@astrojs/cloudflare").Runtime<ENV>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We should probably also update the comments above this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the updates from the v10 adapter release, where the mode options have been deprecated and the adapter now defaults to 'advanced' mode, the comment could be:
// use a default runtime configuration (advanced mode).
Co-authored-by: Dario Piotrowicz <dario.piotrowicz@gmail.com>
thanks for the contribution, @jnmsl |
This pull request updates the deployment documentation for Astro projects on Cloudflare Pages to align with the recent v10 changes in the @astrojs/cloudflare adapter.
Changes: