Files
site-profile/astro.config.mjs
Alex Lebens e3179b0480
All checks were successful
renovate / renovate (push) Successful in 1m17s
test-build / guarddog (push) Successful in 1m8s
test-build / build (push) Successful in 2m3s
feat: remove react
2026-03-16 00:00:26 -05:00

75 lines
1.4 KiB
JavaScript

import { defineConfig } from 'astro/config';
import node from '@astrojs/node';
import sitemap from '@astrojs/sitemap';
import tailwindcss from '@tailwindcss/vite';
import icon from 'astro-icon';
import swup from '@swup/astro';
import { getSiteURL } from './src/scripts/url';
export default defineConfig({
site: getSiteURL(),
image: {
remotePatterns: [
{ protocol: 'https', hostname: '*.alexlebens.net' },
{ protocol: 'https', hostname: '*.jsdelivr.net' },
{ protocol: 'https', hostname: '*.icons8.com' },
],
service: {
entrypoint: 'astro/assets/services/sharp',
}
},
integrations: [
sitemap(),
icon({
include: {
mdi: ['*'],
},
}),
swup({
theme: 'fade',
native: true,
cache: true,
preload: true,
accessibility: true,
smoothScrolling: true,
morph: ['#nav'],
}),
(await import('@playform/compress')).default({
CSS: true,
JavaScript: false,
HTML: {
'html-minifier-terser': {
collapseWhitespace: true,
minifyCSS: false,
minifyJS: false,
},
},
Image: false,
SVG: true,
}),
],
markdown: {
syntaxHighlight: false,
},
plugins: {
'@tailwindcss/postcss': {},
},
vite: {
plugins: [tailwindcss()],
},
output: 'static',
adapter: node({
mode: 'standalone',
}),
});