Concordia uses Astro with server-side rendering (SSR) and supports multiple deployment targets and internationalization.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ishaq74/concordia/llms.txt
Use this file to discover all available pages before exploring further.
Astro Configuration
The main configuration is located inastro.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 (Default)
- Node.js
Vercel Adapter
The default adapter optimized for Vercel deployment:astro.config.mjs
- 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
Supported locales: French (fr), English (en), Arabic (ar), Spanish (es)
Default language for the application. Set to French (
fr).When
true, all routes include the locale prefix (e.g., /fr/about). This ensures consistent URL structure across all languages.Locale Routing
| Locale | Code | Example URL | Direction |
|---|---|---|---|
| French | fr | /fr/about | LTR |
| English | en | /en/about | LTR |
| Arabic | ar | /ar/about | RTL |
| Spanish | es | /es/about | LTR |
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
server- Enables SSR for all pageshybrid- SSR with selective static generation (not used)static- Pre-renders all pages (not suitable for Concordia)
Site Configuration
astro.config.mjs
The production URL of your site. Set via the
SITE environment variable.Example: https://concordia.example.comThe base path for your application. Leave as
/ for root deployment.Integrations
Concordia includes several Astro integrations:astro.config.mjs
astro-icon
astro-icon
Provides icon component support using Iconify collections:
@iconify-json/mdi- Material Design Icons@iconify-json/circle-flags- Country flags@iconify-json/openmoji- Emoji icons
Sonda
Sonda
Performance monitoring and analytics integration:Tracks server-side performance metrics.
MDX
MDX
Enables MDX support for content pages with embedded JSX:
Development Settings
Dev Toolbar
astro.config.mjs
Source Maps
astro.config.mjs
Experimental Features
astro.config.mjs
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 fullastro.config.mjs used in Concordia:
astro.config.mjs
Next Steps
Environment Variables
Configure all required environment variables
Hosting Guide
Deploy to production