Skip to content

Commit

Permalink
fix(platforms): Split up between cloudflare pages and workers (#77774)
Browse files Browse the repository at this point in the history
In #77769 I added the cloudflare
sdk as a new platform for onboarding docs.

This PR builds on top of that by reverting the change to add
`javascript-cloudflare` as a platform and instead have two platforms for
cloudflare workers and cloudflare pages (given they have completely
different setup instructions and use cases).

In our docs pages and workers have two different configure paths:
https://docs.sentry.io/platforms/javascript/guides/cloudflare/#configure
  • Loading branch information
AbhiPrasad authored Sep 23, 2024
1 parent 85041f4 commit dea955e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/sentry/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
"apple-macos",
"bun",
"capacitor",
"cloudflare-pages",
"cloudflare-workers",
"cordova",
"dart",
"deno",
Expand Down Expand Up @@ -99,7 +101,6 @@
"javascript",
"javascript-angular",
"javascript-astro",
"javascript-cloudflare",
"javascript-ember",
"javascript-gatsby",
"javascript-nextjs",
Expand Down
5 changes: 3 additions & 2 deletions src/sentry/utils/platform_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
# When changing this file, make sure to keep sentry/static/app/data/platformCategories.tsx in sync.
BACKEND = {
"bun",
"cloudflare-pages",
"cloudflare-workers",
"deno",
"dotnet",
"dotnet-aspnet",
Expand All @@ -72,7 +74,6 @@
"java-logging",
"java-spring-boot",
"java-spring",
"javascript-cloudflare",
"kotlin",
"native",
"node",
Expand Down Expand Up @@ -119,7 +120,7 @@
SERVERLESS = {
"dotnet-awslambda",
"dotnet-gcpfunctions",
"javascript-cloudflare",
"cloudflare-workers",
"node-awslambda",
"node-azurefunctions",
"node-gcpfunctions",
Expand Down

0 comments on commit dea955e

Please sign in to comment.