From 708603cc5abc4f2979d2efb41613c6c453203777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangJoo=20Park=28=EB=B0=95=EC=B0=BD=EC=A3=BC=29?= Date: Wed, 14 May 2025 10:38:13 +0900 Subject: [PATCH] update config.mjs --- astro.config.mjs | 6 ++++-- package-lock.json | 1 + package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 7d16d97..25c7fbb 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,6 +5,7 @@ const cache = await getCache(); // @ts-check import { defineConfig } from "astro/config"; +import sitemap from "@astrojs/sitemap"; import starlight from "@astrojs/starlight"; import astroExpressiveCode from "astro-expressive-code"; import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers"; @@ -14,12 +15,13 @@ export default defineConfig({ compressHTML: true, prefetch: false, integrations: [ + sitemap(), astroExpressiveCode({ themes: ["dracula"], plugins: [pluginLineNumbers()], }), starlight({ - title: "Flutter 문서", + title: "Flutter 배우기", social: [ { icon: "github", @@ -44,5 +46,5 @@ export default defineConfig({ ], ], }, - + site: "https://changjoo-park.github.io/learn-flutter" }); diff --git a/package-lock.json b/package-lock.json index 5c88752..263586a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.1", "hasInstallScript": true, "dependencies": { + "@astrojs/sitemap": "^3.4.0", "@astrojs/starlight": "^0.34.3", "@beoe/cache": "^0.1.1", "@beoe/rehype-mermaid": "^0.4.2", diff --git a/package.json b/package.json index 3151191..7f10b04 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "build": "astro build", "preview": "astro preview", "upgrade": "npx @astrojs/upgrade", - "postinstall": "playwright install chromium", "astro": "astro" }, "dependencies": { + "@astrojs/sitemap": "^3.4.0", "@astrojs/starlight": "^0.34.3", "@beoe/cache": "^0.1.1", "@beoe/rehype-mermaid": "^0.4.2",