Skip to content

Commit 9895ead

Browse files
committed
fix: deploy with wrangler.toml instead of generated wrangler.json (broken SSR)
1 parent 9e65d6c commit 9895ead

5 files changed

Lines changed: 14 additions & 42 deletions

File tree

bun.lock

Lines changed: 8 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"assets:generate": "bun run scripts/generate-scenes.ts"
6969
},
7070
"dependencies": {
71-
"@astrojs/cloudflare": "^13.5.3",
71+
"@astrojs/cloudflare": "13.6.0",
7272
"@astrojs/mdx": "^5.0.6",
7373
"@astrojs/react": "^5.0.5",
7474
"@fontsource-variable/plus-jakarta-sans": "^5.2.8",

src/components/Search.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface Props {
1313
const { scope, label, shortcut, includeDialog = true }: Props = Astro.props;
1414
const resolvedLabel =
1515
label ?? (scope === "mobile" ? "Search" : "Search the library…");
16-
const resolvedShortcut = shortcut ?? (scope === "mobile" ? undefined : "/");
16+
const resolvedShortcut = shortcut ?? (scope === "mobile" ? undefined : "⌘K");
1717
const instanceId = randomUUID();
1818
const dialogTitleId = `search-dialog-title-${instanceId}`;
1919
const inputId = `search-input-${instanceId}`;

src/pages/glossary/entries/[slug]/[...rest].astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export const prerender = false;
44
import { glossaryEntryPermalink } from "../../../../utils/glossary";
55
66
const { slug } = Astro.params;
7-
const destination = slug ? glossaryEntryPermalink(slug) : "/glossary/";
7+
const destination = slug
8+
? `${glossaryEntryPermalink(slug)}/`
9+
: "/glossary/";
810
return Astro.redirect(destination, 302);
911
---

wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ compatibility_date = "2025-12-03"
44
compatibility_flags = ["nodejs_compat"]
55

66
[assets]
7-
directory = "./dist"
7+
directory = "./dist/client"
88
binding = "ASSETS"
99

1010
# Preview environment for staging deployments

0 commit comments

Comments
 (0)