1// @ts-check 2import { defineConfig, envField, fontProviders } from 'astro/config'; 3import node from '@astrojs/node'; 4 5// https://astro.build/config 6export default defineConfig({ 7 adapter: node({ 8 mode: 'standalone', 9 }), 10 env: { 11 schema: { 12 DB_URL: envField.string({ context: "server", access: "secret" }), 13 DB_TOKEN: envField.string({ context: "server", access: "secret", optional: true }), 14 }, 15 }, 16 experimental: { 17 fonts: [ 18 { 19 provider: "local", 20 name: "Junicode", 21 cssVariable: "--junicode", 22 variants: [ 23 { 24 weight: "300 700", 25 style: "normal", 26 variationSettings: "'wdth' 100 125, 'ENLA' 0 1", 27 src: ["./src/assets/fonts/JunicodeVF-Roman.woff2"], 28 }, 29 { 30 weight: "300 700", 31 style: "italic", 32 variationSettings: "'wdth' 100 125, 'ENLA' 0 1", 33 src: ["./src/assets/fonts/JunicodeVF-Italic.woff2"], 34 }, 35 ], 36 fallbacks: [ 'Charter', 'Bitstream Charter', 'Sitka Text', 'Cambria', 'Georgia', "serif"], 37 }, 38 { 39 provider: fontProviders.fontsource(), 40 name: "Atkinson Hyperlegible", 41 cssVariable: "--atkinson", 42 } 43 ], 44 }, 45});