Skip to content

Commit 6e24902

Browse files
committed
Added wrangler cli setup for deployment
Signed-off-by: Moulik Aggarwal <qwertymoulik@gmail.com>
1 parent 91d32c0 commit 6e24902

5 files changed

Lines changed: 507 additions & 12 deletions

File tree

apps/docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
dist/
33
# generated types
44
.astro/
5+
# wrangler
6+
.wrangler/
57

68
# dependencies
79
node_modules/

apps/docs/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "astro dev",
77
"start": "astro dev",
88
"build": "astro check && astro build",
9-
"preview": "astro preview",
9+
"preview": "wrangler dev",
10+
"deploy": "wrangler deploy",
1011
"astro": "astro"
1112
},
1213
"dependencies": {
@@ -22,14 +23,14 @@
2223
"astro-font": "1.1.0",
2324
"marked": "17.0.1",
2425
"shiki": "4.0.2",
25-
"sharp": "0.34.5",
2626
"starlight-image-zoom": "0.14.1",
2727
"starlight-links-validator": "0.20.1",
2828
"starlight-llms-txt": "0.8.0",
2929
"starlight-showcases": "0.3.2",
3030
"starlight-sidebar-topics": "0.7.1",
3131
"tailwindcss": "4.2.2",
32-
"unplugin-icons": "23.0.1"
32+
"unplugin-icons": "23.0.1",
33+
"wrangler": "^4.78.0"
3334
},
3435
"devDependencies": {
3536
"@iconify-json/lucide": "1.2.98",

apps/docs/wrangler.jsonc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "node_modules/wrangler/config-schema.json",
3+
"name": "openstatus-docs",
4+
"compatibility_date": "2025-03-17",
5+
"assets": {
6+
"directory": "./dist"
7+
}
8+
}

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@
3232
},
3333
"packageManager": "pnpm@10.26.0",
3434
"pnpm": {
35-
"onlyBuiltDependencies": ["@sentry/cli", "@swc/core", "sharp"]
35+
"onlyBuiltDependencies": [
36+
"@sentry/cli",
37+
"@swc/core",
38+
"sharp",
39+
"esbuild",
40+
"workerd"
41+
]
3642
},
3743
"name": "openstatus",
3844
"workspaces": ["apps/*", "packages/**/*", "packages/config/*"],

0 commit comments

Comments
 (0)