| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- // @ts-check
- import { defineConfig } from 'astro/config';
- import sitemap from '@astrojs/sitemap';
- import { fileURLToPath } from 'url';
- const SITE_URL = 'https://fmode.cn';
- const __dirname = fileURLToPath(new URL('.', import.meta.url));
- export default defineConfig({
- site: SITE_URL,
- integrations: [
- sitemap({
- i18n: {
- defaultLocale: 'zh',
- locales: {
- zh: 'zh-CN',
- en: 'en-US',
- },
- },
- }),
- ],
- vite: {
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url)),
- '@components': fileURLToPath(new URL('./src/components', import.meta.url)),
- '@layouts': fileURLToPath(new URL('./src/layouts', import.meta.url)),
- '@i18n': fileURLToPath(new URL('./src/i18n', import.meta.url)),
- '@data': fileURLToPath(new URL('./src/data', import.meta.url)),
- '@utils': fileURLToPath(new URL('./src/utils', import.meta.url)),
- '@assets': fileURLToPath(new URL('./src/assets', import.meta.url)),
- },
- },
- },
- markdown: {
- shikiConfig: {
- theme: 'github-dark',
- },
- },
- });
|