Skip to main content
Concordia uses Astro with server-side rendering (SSR) and supports multiple deployment targets and internationalization.

Astro Configuration

The main configuration is located in astro.config.mjs at the root of the project.

Basic Configuration

astro.config.mjs

Deployment Adapters

Concordia supports two deployment adapters that can be selected at build time.

Vercel Adapter

The default adapter optimized for Vercel deployment:
astro.config.mjs
Build Commands:
Features:
  • Automatic edge function deployment
  • Built-in image optimization
  • Zero-configuration serverless functions
  • Automatic HTTPS
The Vercel adapter is used by default when running npm run build.

Internationalization (i18n)

Concordia supports 4 languages with automatic routing and locale detection.

Supported Locales

astro.config.mjs
array
required
Supported locales: French (fr), English (en), Arabic (ar), Spanish (es)
string
default:"fr"
Default language for the application. Set to French (fr).
boolean
default:"true"
When true, all routes include the locale prefix (e.g., /fr/about). This ensures consistent URL structure across all languages.

Locale Routing

Arabic is automatically detected as RTL (Right-to-Left) and applies the correct dir attribute.

Root Redirect

The root path / automatically redirects to the default locale:

Output Mode

Concordia uses server-side rendering (SSR) for dynamic content:
astro.config.mjs
string
default:"server"
  • server - Enables SSR for all pages
  • hybrid - SSR with selective static generation (not used)
  • static - Pre-renders all pages (not suitable for Concordia)
Changing from server to static will break authentication and dynamic features.

Site Configuration

astro.config.mjs
string
required
The production URL of your site. Set via the SITE environment variable.Example: https://concordia.example.com
string
default:"/"
The base path for your application. Leave as / for root deployment.

Integrations

Concordia includes several Astro integrations:
astro.config.mjs
Provides icon component support using Iconify collections:
  • @iconify-json/mdi - Material Design Icons
  • @iconify-json/circle-flags - Country flags
  • @iconify-json/openmoji - Emoji icons
Usage:
Performance monitoring and analytics integration:
Tracks server-side performance metrics.
Enables MDX support for content pages with embedded JSX:

Development Settings

Dev Toolbar

astro.config.mjs
Enables the Astro development toolbar with debugging tools.

Source Maps

astro.config.mjs
Generates source maps for easier debugging in production.

Experimental Features

astro.config.mjs
boolean
default:"true"
Fails the build if there are prerender conflicts, helping catch routing issues early.

Environment-Specific Configuration

You can customize configuration based on the environment:
astro.config.mjs

Complete Configuration Example

Here’s the full astro.config.mjs used in Concordia:
astro.config.mjs

Next Steps

Environment Variables

Configure all required environment variables

Hosting Guide

Deploy to production