Files
portfolio/astro.config.mjs
T
LOUIS POTEVIN 611af1ac67
Deploy Documentation / check-and-deploy (push) Successful in 20s
feat: add Home, Project, and Work Index views with responsive design and SEO enhancements
- Implemented HomeView with a timeline layout, featuring sections for hero, profile, projects, stack, and contact.
- Created ProjectView to display individual project details, including status, highlights, and tech stack.
- Developed WorkIndexView to list all projects with breadcrumb navigation.
- Enhanced TypeScript configuration for improved module resolution.
2026-07-02 13:55:46 +02:00

50 lines
997 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import { fileURLToPath } from 'node:url';
const ndsTokens = fileURLToPath(
new URL('./node_modules/@unkn0wndo3s/nova-design-system/src/styles/tokens', import.meta.url),
);
// https://astro.build/config
export default defineConfig({
site: 'https://louis-potevin.dev',
trailingSlash: 'ignore',
// About & Contact now live on the home timeline.
redirects: {
'/about': '/#about',
'/contact': '/#contact',
'/en/about': '/en/#about',
'/en/contact': '/en/#contact',
},
i18n: {
defaultLocale: 'fr',
locales: ['fr', 'en'],
routing: {
prefixDefaultLocale: false,
},
},
integrations: [
sitemap({
i18n: {
defaultLocale: 'fr',
locales: { fr: 'fr-FR', en: 'en-US' },
},
}),
],
vite: {
css: {
preprocessorOptions: {
scss: {
loadPaths: [ndsTokens],
},
},
},
},
});