test image service passthrough 715c4c31
Steve · 2024-09-19 05:24 1 file(s) · +6 −5
astro.config.ts +6 −5
1 -
import { defineConfig } from "astro/config";
1 +
import { defineConfig, passthroughImageService } from "astro/config";
2 2
import mdx from "@astrojs/mdx";
3 3
import tailwind from "@astrojs/tailwind";
4 4
import sitemap from "@astrojs/sitemap";
8 8
export default defineConfig({
9 9
	site: "https://stevedylan.dev",
10 10
	outDir: "dist",
11 +
	image: {
12 +
		service: passthroughImageService(),
13 +
	},
11 14
	markdown: {
12 15
		shikiConfig: {
13 16
			theme: "css-variables",
29 32
			"process.env.NODE_ENV": `'${process.env.NODE_ENV}'`,
30 33
		},
31 34
	},
32 -
	output: "hybrid",
33 -
	adapter: cloudflare({
34 -
		imageService: "cloudflare",
35 -
	}),
35 +
	output: "server",
36 +
	adapter: cloudflare(),
36 37
});