-
Notifications
You must be signed in to change notification settings - Fork 197
Migrate to Cloudflare #2432
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
Merged
Merged
Migrate to Cloudflare #2432
Changes from 31 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
a6ff1e2
Checkpoint
matthewp e2f7d7a
Merge main into cloudflare-migration
matthewp fdec2d3
Remove Netlify config, use R2 for large assets via site-assets.astro.…
matthewp 6dcfcab
Add advanced routing to proxy /fonts/* to fonts-cdn.astro.build
matthewp dd77cab
Trigger Workers Build
matthewp 850ca09
Trigger Workers Build (2)
matthewp 080e4e6
Move IntegrationCategories out of content.config to avoid bundling gl…
matthewp df8cac3
Add request logging to app.ts
matthewp 43c3721
Add verbose request and fetch logging
matthewp d91ca95
Log response body on non-ok fetch responses
matthewp 8d71e9e
Trigger rebuild
matthewp 4d2e761
Fix: change not_found_handling to none so SSR routes reach the worker
matthewp 1865960
Strip wrangler.jsonc down to custom config only, let adapter handle t…
matthewp 02eccd8
Add extensive logging to app.ts
matthewp 604a55e
Fix: remove env param from fetch signature
matthewp 514ade4
Enable node compat flag
matthewp 31dae02
Pre-bundle @iconify/utils for workerd compatibility
matthewp d969527
Use prerenderEnvironment: 'node' to avoid CJS/workerd incompatibiliti…
matthewp 2e54f5f
Remove app.ts and advancedRouting, no longer needed
matthewp 178477d
Pre-bundle CJS deps for workerd compatibility (expressive-code, iconify)
matthewp 947d158
Trigger rebuild
matthewp 937517d
Revert to prerenderEnvironment: node
matthewp f3402eb
Merge main into cloudflare-migration
matthewp 251286d
Address review: prerender themes/integrations/agencies, add fonts pro…
matthewp e26bd79
Revert dynamic routes back to SSR, keep only themes/agencies index pr…
matthewp f8a8558
Merge main into cloudflare-migration
matthewp 23d26b1
Use fonts-cdn.astro.build directly with preconnect, remove app.ts proxy
matthewp 7f11920
Merge main into cloudflare-migration
matthewp 35c8d3d
Update src/pages/agencies/index.astro
matthewp f0edf23
Fix preview site URL to use WORKERS_CI_BRANCH env var
matthewp 4aafcb8
Revert themes index to SSR for redirect support
matthewp 0529168
Optimize astro-expressive-code
matthewp 1089ce1
Add non-trailing-slash variants for all redirects
matthewp 8ee6041
Merge remote-tracking branch 'origin/main' into cloudflare-migration
matthewp cbcea5f
Remove sharp image service patch
matthewp 53fd01d
Remove astro patch from lockfile
matthewp 59536a1
Remove astro patch from pnpm
matthewp be90647
Remove astro patch from pnpm-workspace.yaml
matthewp d13a2bd
Fix expressive code: use JS regex engine and add postcss-nested to op…
matthewp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Worker Build Logs | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["**"] | ||
|
|
||
| jobs: | ||
| build-logs: | ||
| if: github.repository == 'withastro/astro.build' | ||
| name: Cloudflare Worker Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Stream Workers Builds Logs | ||
| uses: withastro/workers-builds-log-action@v1 | ||
| with: | ||
| api-token: ${{ secrets.CF_BUILDS_API_TOKEN }} | ||
| account-id: ${{ secrets.CF_ACCOUNT_ID }} | ||
| worker-tag: ${{ secrets.CF_WORKER_TAG }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Reminder for us to double check this once the PR merges.