Astro Configuration
The main configuration file is located atastro.config.mjs in the project root.
Current Configuration
astro.config.mjs
Configuration Options
Site URL
Thesite option defines the base URL where your portfolio will be deployed:
The
site URL is critical for:- Generating correct canonical URLs
- Creating proper sitemaps
- Ensuring RSS feeds have absolute URLs
- GitHub Pages deployment
Base Path (Optional)
If deploying to a subdirectory, add abase option:
Build Configuration
Customize the build output:Development Server
Configure the development server:TypeScript Configuration
The project uses Astro’s base TypeScript configuration:tsconfig.json
- Proper type checking for Astro components
- Content collections type safety
- Modern JavaScript/TypeScript features
Custom TypeScript Options
You can extend the base configuration:Environment Variables
Create a.env file in the project root for sensitive configuration:
.env
Adding Integrations
Extend Astro with integrations:astro.config.mjs:
Common Customizations
Change site metadata
Change site metadata
Update the
site URL and add meta information:Enable trailing slashes
Enable trailing slashes
Configure URL format:
Configure markdown
Configure markdown
Customize markdown processing:
Next Steps
- Adding Projects - Create new project entries
- Content Collections - Understand the content structure
- GitHub Pages - Deploy your configured site