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

[Pages] Update Astro guide for new adapter #14535

Merged
merged 3 commits into from
May 16, 2024

Conversation

jnmsl
Copy link
Contributor

@jnmsl jnmsl commented May 13, 2024

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:

  • Removal of Mode Options
  • Introduction of Local Runtime and PlatformProxy
  • Minor text adjustment

Copy link
Member

@dario-piotrowicz dario-piotrowicz left a 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.

content/pages/framework-guides/deploy-an-astro-site.md Outdated Show resolved Hide resolved
// 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>;
Copy link
Contributor

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.

Copy link
Contributor Author

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>
@kodster28
Copy link
Contributor

thanks for the contribution, @jnmsl

@kodster28 kodster28 merged commit 981eb8c into cloudflare:production May 16, 2024
6 checks passed
@jnmsl jnmsl deleted the pages-astro branch May 16, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants