mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-11 10:46:07 +09:00
Updated to Astro v5
This commit is contained in:
+3
-2
@@ -3,10 +3,11 @@ import react from "@astrojs/react";
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
import tailwind from "@astrojs/tailwind";
|
||||
import AutoImport from "astro-auto-import";
|
||||
import { defineConfig, squooshImageService } from "astro/config";
|
||||
import { defineConfig } from "astro/config";
|
||||
import remarkCollapse from "remark-collapse";
|
||||
import remarkToc from "remark-toc";
|
||||
import config from "./src/config/config.json";
|
||||
import sharp from "sharp";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
@@ -14,7 +15,7 @@ export default defineConfig({
|
||||
base: config.site.base_path ? config.site.base_path : "/",
|
||||
trailingSlash: config.site.trailing_slash ? "always" : "never",
|
||||
image: {
|
||||
service: squooshImageService(),
|
||||
service: sharp(),
|
||||
},
|
||||
integrations: [
|
||||
react(),
|
||||
|
||||
Reference in New Issue
Block a user