This page documents the complete Astro configuration used in the portfolio site. The configuration is defined inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lewis-kori/astro-portfolio-v3/llms.txt
Use this file to discover all available pages before exploring further.
astro.config.mjs at the project root.
Overview
The Astro configuration sets up server-side rendering with Cloudflare, internationalization, experimental font optimization, environment variables, and integrations for code highlighting and sitemap generation.Core Configuration
Specifies the output mode for the site. Set to
"server" to enable server-side rendering (SSR).Value: "server"The deployment adapter for SSR. Uses
@astrojs/cloudflare adapter for deploying to Cloudflare Pages/Workers.Value: cloudflare()Import: import cloudflare from '@astrojs/cloudflare'The public URL of your deployed site. Used for generating canonical URLs and sitemaps.Value:
"https://lewiskori.com"Experimental Features
Experimental font optimization feature that automatically loads and optimizes web fonts.
Environment Variables
Defines type-safe environment variables with validation and context specifications.
Internationalization (i18n)
Configuration for multi-language support across the site.
Vite Configuration
Vite plugins for build tooling and development server.Plugins:
tailwindcss()- TailwindCSS Vite plugin for styling
import tailwindcss from '@tailwindcss/vite'Integrations
Expressive Code
Syntax highlighting integration for code blocks with advanced features.Import:
import expressiveCode from 'astro-expressive-code'Sitemap
Automatic XML sitemap generation for SEO with custom priority rules.Import:
import sitemap from '@astrojs/sitemap'Complete Configuration
Related Configuration
- Site Configuration - Site metadata and personal information
- Content Schema - Content collections schema definitions