popov.link/astro.config.mjs
Valentin Popov 0e80f4e4d7
All checks were successful
Test / test (pull_request) Successful in 52s
Test / test (push) Successful in 59s
Updated styles build config
2024-09-18 00:41:02 +00:00

27 lines
578 B
JavaScript

import { defineConfig } from "astro/config";
import { remarkReadingTime } from "./src/plugins/remarkReadingTime";
import cloudflare from "@astrojs/cloudflare";
import icon from "astro-icon";
import sitemap from "@astrojs/sitemap";
export default defineConfig({
site: "https://popov.link",
output: "hybrid",
adapter: cloudflare({
imageService: "compile",
}),
integrations: [icon(), sitemap()],
build: {
inlineStylesheets: "always",
},
markdown: {
remarkPlugins: [remarkReadingTime],
},
redirects: {
"/blog": {
destination: "/",
status: 301,
},
},
});