Skip to content

Commit

Permalink
bump next & add doge
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Nov 21, 2023
1 parent a8843de commit 7e56db9
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 64 deletions.
2 changes: 1 addition & 1 deletion app/(post)/og/[id]/route.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const runtime = "edge";

import { ImageResponse } from "next/server";
import { ImageResponse } from "next/og";
import { getPosts } from "@/app/get-posts";

// fonts
Expand Down
2 changes: 1 addition & 1 deletion app/about/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const runtime = "edge";
export const revalidate = 60;

import { ImageResponse } from "next/server";
import { ImageResponse } from "next/og";
import { getPosts } from "@/app/get-posts";
import commaNumber from "comma-number";

Expand Down
23 changes: 23 additions & 0 deletions app/doge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export function doge() {
console.log(`
▄ ▄
▌▒█ ▄▀▒▌
▌▒▒█ ▄▀▒▒▒▐
▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌
▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌
▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌
▌▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒▐
▐▒▒▐▀▐▀▒░▄▄▒▄▒▒▒▒▒▒░▒░▒░▒▒▒▒▌
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒▒▒░▒░▒░▒▒▐
▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒░▒░▒░▒░▒▒▒▌
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▄▒▒▐
▀▄▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▄▒▒▒▒▌
▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀
▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀
▒▒▒▒▒▒▒▒▒▒▀▀
`);
}
8 changes: 6 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { themeEffect } from "./theme-effect";
import { Analytics } from "./analytics";
import { Header } from "./header";
import { Footer } from "./footer";
import { doge } from "./doge";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -24,10 +25,13 @@ export const metadata = {
site: "@rauchg",
creator: "@rauchg",
},
themeColor: "transparent",
metadataBase: new URL("https://rauchg.com"),
};

export const viewport = {
themeColor: "transparent",
};

export default function RootLayout({
children,
}: {
Expand All @@ -42,7 +46,7 @@ export default function RootLayout({
<head>
<script
dangerouslySetInnerHTML={{
__html: `(${themeEffect.toString()})();`,
__html: `(${themeEffect.toString()})();(${doge.toString()})();`,
}}
/>
</head>
Expand Down
2 changes: 1 addition & 1 deletion app/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const runtime = "edge";
export const revalidate = 60;

import { ImageResponse } from "next/server";
import { ImageResponse } from "next/og";
import { getPosts } from "@/app/get-posts";

export default async function MainOG() {
Expand Down
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const withMDX = require("@next/mdx")();
module.exports = withMDX({
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
experimental: {
appDir: true,
mdxRs: true,
},
swcMinify: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"date-fns": "^2.29.3",
"image-size": "^1.0.2",
"load-script": "^1.0.0",
"next": "13.4.19",
"next": "14.0.4-canary.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intersection-observer": "^8.34.0",
Expand Down
122 changes: 65 additions & 57 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e56db9

Please sign in to comment.