~repos /website
GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone
https://git.pyrossh.dev/website/.git
website
Discussions:
https://groups.google.com/g/rust-embed-devs
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
1f0213f1
—
pyrossh 1 month ago
update alchemy
- .alchemy/prd/rewrite-rules-prd.json +12 -12
- alchemy.run.ts +6 -7
.alchemy/prd/rewrite-rules-prd.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"fqn": "prd/rewrite-rules-prd",
|
|
5
5
|
"seq": 3,
|
|
6
6
|
"data": {},
|
|
7
|
-
"status": "
|
|
7
|
+
"status": "created",
|
|
8
8
|
"output": {
|
|
9
9
|
"Symbol(alchemy::ResourceKind)": "cloudflare::Ruleset",
|
|
10
10
|
"Symbol(alchemy::ResourceID)": "rewrite-rules-prd",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"description": "Rewrite trailing slash to index.html",
|
|
31
31
|
"enabled": true,
|
|
32
32
|
"expression": "(ends_with(http.request.uri.path, \"/\") and http.host eq \"pyrossh.dev\")",
|
|
33
|
-
"id": "
|
|
33
|
+
"id": "6f422284b559416c8fdaff9fe7729dcf",
|
|
34
|
-
"last_updated": "2026-05-
|
|
34
|
+
"last_updated": "2026-05-15T05:38:13.541986Z",
|
|
35
|
-
"ref": "
|
|
35
|
+
"ref": "6f422284b559416c8fdaff9fe7729dcf",
|
|
36
36
|
"version": "1"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"description": "Rewrite non-file paths to path/index.html",
|
|
48
48
|
"enabled": true,
|
|
49
49
|
"expression": "(not ends_with(http.request.uri.path, \"/\") and not http.request.uri.path contains \".\" and http.host eq \"pyrossh.dev\")",
|
|
50
|
-
"id": "
|
|
50
|
+
"id": "8534474241ca4d52bf74a6a079acb52d",
|
|
51
|
-
"last_updated": "2026-05-
|
|
51
|
+
"last_updated": "2026-05-15T05:38:13.541986Z",
|
|
52
|
-
"ref": "
|
|
52
|
+
"ref": "8534474241ca4d52bf74a6a079acb52d",
|
|
53
53
|
"version": "1"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"description": "Rewrite /files/ paths with extension to append /index.html",
|
|
65
65
|
"enabled": true,
|
|
66
66
|
"expression": "(http.request.uri.path contains \"/files/\" and http.request.uri.path contains \".\" and not ends_with(http.request.uri.path, \"/\") and http.host eq \"pyrossh.dev\")",
|
|
67
|
-
"id": "
|
|
67
|
+
"id": "c0458fba18a54f998295b3bc7d34b5f6",
|
|
68
|
-
"last_updated": "2026-05-
|
|
68
|
+
"last_updated": "2026-05-15T05:38:13.541986Z",
|
|
69
|
-
"ref": "
|
|
69
|
+
"ref": "c0458fba18a54f998295b3bc7d34b5f6",
|
|
70
70
|
"version": "1"
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
|
-
"lastUpdated": "2026-05-
|
|
73
|
+
"lastUpdated": "2026-05-15T05:38:13.541986Z",
|
|
74
|
-
"version": "
|
|
74
|
+
"version": "15"
|
|
75
75
|
},
|
|
76
76
|
"props": {
|
|
77
77
|
"zone": {
|
alchemy.run.ts
CHANGED
|
@@ -81,12 +81,11 @@ const rewriteRules = await Ruleset(`rewrite-rules-${app.stage}`, {
|
|
|
81
81
|
],
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// Website (static site deployed to Cloudflare Workers with assets)
|
|
85
|
-
|
|
84
|
+
await $`bun run build:resume:pdf`;
|
|
86
|
-
|
|
85
|
+
await $`bun run build:resume:svg`;
|
|
87
|
-
|
|
86
|
+
await $`rm -rf dist`;
|
|
88
|
-
|
|
87
|
+
await $`bun run build`;
|
|
89
|
-
|
|
88
|
+
await $`rclone sync -P dist r2:${websiteBucket.name}`;
|
|
90
|
-
|
|
89
|
+
await $`rm -rf dist`;
|
|
91
90
|
|
|
92
91
|
await app.finalize();
|