Astro Configuration
Theastro.config.ts file is the main configuration file for your Astro site. It defines integrations, build settings, and site metadata.
Basic Configuration
astro.config.ts
Configuration Options
The base URL for your deployed site. This is used for generating canonical URLs and sitemaps.
Astro integrations to enable. The template uses:
- React: Enables React components within Astro
- Tailwind CSS: With
applyBaseStyles: falseto use custom base styles - MDX: For enhanced markdown support with JSX components
The
applyBaseStyles: false option is important as the template uses Shadcn UI’s custom CSS variables for styling instead of Tailwind’s default base styles.Profile Configuration
Thesrc/content/profileData.ts file contains all your personal information, skills, and social links.
Personal Information
src/content/profileData.ts
Key Fields
SEO Settings
SEO Settings
Configure your site’s metadata for search engines:
Personal Details
Personal Details
Basic information displayed across your portfolio:
firstName: Used in personalized greetingsname: Full name displayed prominentlyheadLine: Short tagline or current roleheadLine2: Extended bio or mission statementtimezone: Your local timezone (e.g., “America/New_York”)language: Locale code (e.g., “en-US”)
Skills Array
Skills Array
List your technical skills and technologies:
Social Links
Social Links
Education (Studies)
Education (Studies)
Add your educational background:
Content Schema Configuration
Thesrc/content/config.ts file defines the schema for all content collections using Zod validation.
src/content/config.ts
Understanding Content Schemas
Each collection has a defined schema that validates the frontmatter in your MDX files:Environment Variables
For sensitive configuration or deployment-specific settings, use environment variables:.env
Astro provides access to environment variables prefixed with
PUBLIC_ in client-side code. Non-prefixed variables are only available server-side.Next Steps
Theming
Customize colors, dark mode, and visual styling
Adding Content
Learn how to add projects, posts, and experiences