45 lines
938 B
JavaScript
45 lines
938 B
JavaScript
// @ts-check
|
|
import { defineConfig, fontProviders, envField } from "astro/config";
|
|
import node from "@astrojs/node";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
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",
|
|
}),
|
|
|
|
env: {
|
|
schema: {
|
|
PHOTO_DIR_ABSOLUTE_PATH: envField.string({
|
|
context: "server",
|
|
access: "secret",
|
|
}),
|
|
},
|
|
},
|
|
});
|