Skip to content

Commit dea955e

Browse files
authored
fix(platforms): Split up between cloudflare pages and workers (#77774)
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
1 parent 85041f4 commit dea955e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/sentry/models/project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
"apple-macos",
6666
"bun",
6767
"capacitor",
68+
"cloudflare-pages",
69+
"cloudflare-workers",
6870
"cordova",
6971
"dart",
7072
"deno",
@@ -99,7 +101,6 @@
99101
"javascript",
100102
"javascript-angular",
101103
"javascript-astro",
102-
"javascript-cloudflare",
103104
"javascript-ember",
104105
"javascript-gatsby",
105106
"javascript-nextjs",

src/sentry/utils/platform_categories.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
# When changing this file, make sure to keep sentry/static/app/data/platformCategories.tsx in sync.
5151
BACKEND = {
5252
"bun",
53+
"cloudflare-pages",
54+
"cloudflare-workers",
5355
"deno",
5456
"dotnet",
5557
"dotnet-aspnet",
@@ -72,7 +74,6 @@
7274
"java-logging",
7375
"java-spring-boot",
7476
"java-spring",
75-
"javascript-cloudflare",
7677
"kotlin",
7778
"native",
7879
"node",
@@ -119,7 +120,7 @@
119120
SERVERLESS = {
120121
"dotnet-awslambda",
121122
"dotnet-gcpfunctions",
122-
"javascript-cloudflare",
123+
"cloudflare-workers",
123124
"node-awslambda",
124125
"node-azurefunctions",
125126
"node-gcpfunctions",

0 commit comments

Comments
 (0)