port to Astro
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6e1c163a147b14b92a5f6ae4de6a87206a6a6964
This commit is contained in:
parent
69e9d63be7
commit
f25cfa3e7e
14 changed files with 5125 additions and 200 deletions
34
astro.config.ts
Normal file
34
astro.config.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
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'],
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue