- Changed site URL in configuration from 'https://example.com' to 'https://nicholai.work'. - Updated site title and description for better SEO optimization. - Removed outdated portrait images and replaced them with optimized formats in the hero section. - Enhanced BaseHead component with structured data for improved search engine visibility. - Added reading time calculation to blog posts for better user engagement.
30 lines
558 B
JavaScript
30 lines
558 B
JavaScript
// @ts-check
|
|
|
|
import mdx from '@astrojs/mdx';
|
|
import sitemap from '@astrojs/sitemap';
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
import cloudflare from '@astrojs/cloudflare';
|
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
import react from '@astrojs/react';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://nicholai.work',
|
|
integrations: [mdx(), sitemap(), react()],
|
|
|
|
adapter: cloudflare({
|
|
platformProxy: {
|
|
enabled: true
|
|
},
|
|
|
|
imageService: "compile"
|
|
}),
|
|
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
});
|