74 lines
No EOL
1.6 KiB
JavaScript
74 lines
No EOL
1.6 KiB
JavaScript
// @ts-check
|
|
|
|
import mdx from '@astrojs/mdx';
|
|
import sitemap from '@astrojs/sitemap';
|
|
import { defineConfig, envField, fontProviders } from 'astro/config';
|
|
|
|
import node from '@astrojs/node';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://adrian-altner.de',
|
|
|
|
env: {
|
|
schema: {
|
|
WEBMENTION_TOKEN: envField.string({
|
|
context: 'server',
|
|
access: 'secret',
|
|
optional: true,
|
|
}),
|
|
},
|
|
},
|
|
|
|
devToolbar: {
|
|
enabled: false,
|
|
},
|
|
|
|
i18n: {
|
|
defaultLocale: 'de',
|
|
locales: ['de', 'en'],
|
|
routing: {
|
|
prefixDefaultLocale: false,
|
|
redirectToDefaultLocale: false,
|
|
},
|
|
},
|
|
|
|
integrations: [
|
|
mdx(),
|
|
sitemap({
|
|
i18n: {
|
|
defaultLocale: 'de',
|
|
locales: { de: 'de-DE', en: 'en-US' },
|
|
},
|
|
}),
|
|
],
|
|
|
|
fonts: [
|
|
{
|
|
provider: fontProviders.local(),
|
|
name: 'Atkinson',
|
|
cssVariable: '--font-atkinson',
|
|
fallbacks: ['sans-serif'],
|
|
options: {
|
|
variants: [
|
|
{
|
|
src: ['./src/assets/fonts/atkinson-regular.woff'],
|
|
weight: 400,
|
|
style: 'normal',
|
|
display: 'swap',
|
|
},
|
|
{
|
|
src: ['./src/assets/fonts/atkinson-bold.woff'],
|
|
weight: 700,
|
|
style: 'normal',
|
|
display: 'swap',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
}); |