diff --git a/astro.config.ts b/astro.config.ts index 07feac1..a125452 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -49,7 +49,7 @@ export default defineConfig({ ], }), uploader({ - paths: ['images', 'og', 'cats'], + paths: ['images', 'assets'], endpoint: process.env.S3_ENDPOINT, bucket: process.env.S3_BUCKET as string, accessKey: process.env.S3_ACCESS_KEY as string, @@ -76,7 +76,7 @@ export default defineConfig({ optimizeDeps: { exclude: ['@napi-rs/canvas', 'opendal', 'sharp'] }, }, build: { - assets: 'cats', + assets: 'assets', assetsPrefix: options.assetsPrefix(), }, }); diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index 9d4dc9a..46b40ed 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -21,7 +21,7 @@ const { Content, headings } = await page.render(); --- - +
diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro index cad7edf..33180a6 100644 --- a/src/layouts/PostLayout.astro +++ b/src/layouts/PostLayout.astro @@ -28,7 +28,7 @@ const { Content, headings } = await post.render(); description={post.summary} publishDate={post.date.toISOString()} requestPath={post.permalink} - ogImageUrl={`/og/${post.slug}.png`} + ogImageUrl={`/images/og/${post.slug}.png`} ogImageAltText={`${post.title} - ${post.summary}`} />
diff --git a/src/pages/og/[slug].png.ts b/src/pages/images/og/[slug].png.ts similarity index 100% rename from src/pages/og/[slug].png.ts rename to src/pages/images/og/[slug].png.ts