Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6e1c163a147b14b92a5f6ae4de6a87206a6a6964
34 lines
661 B
TypeScript
34 lines
661 B
TypeScript
import { defineConfig, fontProviders } from 'astro/config';
|
|
import node from '@astrojs/node';
|
|
import icon from 'astro-icon';
|
|
|
|
export default defineConfig({
|
|
output: 'server',
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
|
|
server: {
|
|
host: true,
|
|
},
|
|
|
|
integrations: [icon()],
|
|
|
|
fonts: [
|
|
{
|
|
name: 'Fira Code',
|
|
cssVariable: '--font-fira-code',
|
|
provider: fontProviders.local(),
|
|
options: {
|
|
variants: [
|
|
{
|
|
src: ['./src/assets/fonts/FiraCode-Regular.woff2'],
|
|
weight: 'normal',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
fallbacks: ['monospace'],
|
|
},
|
|
},
|
|
],
|
|
});
|