Skip to content

Commit 2121538

Browse files
committed
fix: actually rendering landing
1 parent ef01ce6 commit 2121538

File tree

7 files changed

+15
-8
lines changed

7 files changed

+15
-8
lines changed

apps/landing/src/components/Header.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@
9999
</div>
100100

101101
<div class="flex items-center gap-2">
102-
<Button href="/download">Install BashBuddy</Button>
102+
<Button href={`${SITE_URLS.DOCS_URL}/install`}
103+
>Install BashBuddy</Button
104+
>
103105
<Button
104106
href={SITE_URLS.ACCOUNT_URL}
105107
class="bg-orange-600 hover:bg-orange-700">Go to account</Button
@@ -181,7 +183,7 @@
181183
</div>
182184
<div class="flex flex-col gap-2 pb-4">
183185
<a
184-
href="/download"
186+
href={`${SITE_URLS.DOCS_URL}/install`}
185187
class="inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2"
186188
onclick={closeMenu}
187189
>

apps/landing/src/routes/(landing)/+page.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
Zap,
2929
} from "lucide-svelte";
3030
31+
import { SITE_URLS } from "@bashbuddy/consts";
32+
3133
type ShellType = "bash" | "zsh" | "powershell" | "npm" | "bun";
3234
3335
let selectedShell = $state<ShellType>("bash");
@@ -136,7 +138,7 @@
136138
"Write commands naturally, without worrying about arguments | BashBuddy",
137139
description:
138140
"BashBuddy is an AI assistant that helps you get things done. Make your day-to-day less painful.",
139-
images: [{ url: "https://bashbuddy.run/og.png" }],
141+
// images: [{ url: "https://bashbuddy.run/og.png" }],
140142
}}
141143
twitter={{
142144
card: "summary_large_image",
@@ -231,7 +233,7 @@
231233
<Lock class="h-4 w-4" />
232234
<p>
233235
Completely private & local - <a
234-
href="/privacy"
236+
href={`${SITE_URLS.DOCS_URL}/privacy`}
235237
class="text-primary hover:underline inline-flex items-center"
236238
>learn more <ChevronRight class="h-3 w-3 ml-0.5" /></a
237239
>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO

apps/landing/src/routes/+layout.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import posthog from "posthog-js";
77

88
import type { LayoutLoad } from "./$types";
99

10+
export const prerender = true;
11+
1012
export const load: LayoutLoad = () => {
1113
if (browser) {
1214
posthog.init(PUBLIC_POSTHOG_API_KEY, {

apps/landing/svelte.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const config = {
2222
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
2323
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
2424
adapter: adapter({
25-
fallback: "index.html"
25+
fallback: "404.html",
2626
}),
2727
paths: {
2828
relative: false,
@@ -33,7 +33,6 @@ const config = {
3333
prerender: {
3434
origin: "https://bashbuddy.run",
3535
},
36-
3736
},
3837
extensions: [".svelte", ".svx"],
3938
};

infra/Caddyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# Root directory for all static files
1212
root * /usr/share/caddy
1313

14-
# Try files or serve index.html as fallback
15-
try_files {path} /index.html
14+
# Try files or serve 404.html as fallback
15+
try_files {path} /404.html
1616

1717
# Serve static files
1818
file_server

0 commit comments

Comments
 (0)