popov.link/astro.config.mjs

26 lines
539 B
JavaScript
Raw Normal View History

2024-09-05 00:16:37 +03:00
import { defineConfig } from "astro/config";
2024-09-06 11:21:27 +03:00
import { remarkReadingTime } from "./src/plugins/remarkReadingTime";
import cloudflare from "@astrojs/cloudflare";
2024-09-05 17:55:42 +03:00
import sitemap from "@astrojs/sitemap";
2024-09-05 00:16:37 +03:00
2024-09-05 00:23:21 +03:00
export default defineConfig({
site: "https://popov.link",
output: "hybrid",
adapter: cloudflare({
imageService: "compile",
}),
integrations: [sitemap()],
2024-09-18 03:41:02 +03:00
build: {
inlineStylesheets: "always",
},
2024-09-06 11:21:27 +03:00
markdown: {
remarkPlugins: [remarkReadingTime],
},
2024-09-13 01:10:31 +03:00
redirects: {
"/blog": {
destination: "/",
status: 301,
},
},
2024-09-05 00:23:21 +03:00
});