From 98a6eef797a0966a46b01cefd74d33d44b5fb017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=89=E9=87=8E=E6=95=AC=E5=A4=AA=E9=83=8E?= Date: Mon, 16 Sep 2024 16:17:45 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20node:buffer=E3=82=92=E4=BD=BF?= =?UTF-8?q?=E3=81=88=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c9899012b10fb07fc95345e9137f546b3f4a7fa5. --- astro.config.mjs | 3 --- src/pages/og/[...slug].png.ts | 1 - 2 files changed, 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index eb5dde0..7f133c4 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -17,9 +17,6 @@ export default defineConfig({ optimizeDeps: { exclude: ["fsevents"], }, - ssr: { - external: ["node:buffer"], - }, }, output: "hybrid", adapter: cloudflare(), diff --git a/src/pages/og/[...slug].png.ts b/src/pages/og/[...slug].png.ts index d8cd522..94a1a41 100644 --- a/src/pages/og/[...slug].png.ts +++ b/src/pages/og/[...slug].png.ts @@ -1,7 +1,6 @@ import type { APIContext, APIRoute } from "astro"; import { getEntry } from "astro:content"; import { getOgImage } from "./_OgImage"; -import { Buffer } from "node:buffer"; export const prerender = false;