Skip to content

Commit 903215d

Browse files
committed
fix: packages upgrade and add buy me a coffee
1 parent 770e041 commit 903215d

File tree

6 files changed

+214
-87
lines changed

6 files changed

+214
-87
lines changed

apps/www/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { StructuredData } from "@/components/structured-data";
1818
import "@workspace/ui/globals.css";
1919
import { Toaster } from "@workspace/ui/components/sonner";
2020
import Script from "next/script";
21+
import { BuyMeACoffeeButton } from "@/components/buy-me-a-coffee";
2122

2223
const fontSans = Geist({
2324
subsets: ["latin"],
@@ -166,6 +167,7 @@ export default async function RootLayout({ children }: Readonly<LayoutProps>) {
166167
</header>
167168
<main className="flex flex-1 flex-col h-screen">
168169
{children}
170+
<BuyMeACoffeeButton />
169171
<Analytics />
170172
<Toaster />
171173
</main>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Image from "next/image";
2+
import Link from "next/link";
3+
4+
export function BuyMeACoffeeButton() {
5+
return (
6+
<Link
7+
className="fixed right-5 bottom-5"
8+
href="https://www.buymeacoffee.com/hour.is"
9+
target="_blank"
10+
rel="noopener noreferrer"
11+
>
12+
<Image
13+
src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
14+
alt="Buy Me A Coffee"
15+
width={217}
16+
height={54}
17+
/>
18+
</Link>
19+
);
20+
}

apps/www/next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ const nextConfig = {
1212
images: {
1313
formats: ["image/webp", "image/avif"],
1414
minimumCacheTTL: 60,
15+
remotePatterns: [
16+
{
17+
protocol: "https",
18+
hostname: "cdn.buymeacoffee.com",
19+
port: "",
20+
pathname: "/buttons/v2/**",
21+
},
22+
],
1523
},
1624

1725
// Headers for SEO

apps/www/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"contentlayer": "^0.3.4",
2020
"date-fns": "^4.1.0",
2121
"lucide-react": "^0.525.0",
22-
"next": "^15.5.0",
22+
"next": "^15.5.6",
2323
"next-contentlayer": "^0.3.4",
2424
"next-mdx-remote": "^5.0.0",
2525
"next-themes": "^0.4.6",
26-
"react": "^19.1.1",
27-
"react-dom": "^19.1.1",
28-
"react-syntax-highlighter": "^15.6.3",
26+
"react": "^19.2.0",
27+
"react-dom": "^19.2.0",
28+
"react-syntax-highlighter": "^15.6.6",
2929
"rehype-highlight": "^7.0.2",
3030
"rehype-prism-plus": "^2.0.1",
3131
"rehype-slug": "^6.0.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"turbo": "^2.5.6",
2020
"typescript": "5.8.3"
2121
},
22-
"packageManager": "pnpm@10.15.1",
22+
"packageManager": "pnpm@10.18.3",
2323
"engines": {
2424
"node": ">=20"
2525
}

0 commit comments

Comments
 (0)