Skip to content

Commit 9e1d6d2

Browse files
authored
Docs: fix font provider on landing (#994)
* Docs: update font provider config * Docs: bump astro dependency to v5.18.0 and add pnpm lockfile
1 parent 5b6c4f3 commit 9e1d6d2

3 files changed

Lines changed: 4744 additions & 20 deletions

File tree

landing/astro.config.mjs

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
import { defineConfig, envField } from "astro/config";
2+
import { defineConfig, envField, fontProviders } from "astro/config";
33
import react from "@astrojs/react";
44
import tailwindcss from "@tailwindcss/vite";
55

@@ -32,24 +32,26 @@ export default defineConfig({
3232
{
3333
cssVariable: "--font-aeonik",
3434
name: "Aeonik",
35-
provider: "local",
36-
variants: [
37-
{
38-
src: ["./public/fonts/aeonik/aeonik-light.otf"],
39-
style: "normal",
40-
weight: 300,
41-
},
42-
{
43-
src: ["./public/fonts/aeonik/aeonik-regular.otf"],
44-
style: "normal",
45-
weight: 400,
46-
},
47-
{
48-
src: ["./public/fonts/aeonik/aeonik-medium.otf"],
49-
style: "normal",
50-
weight: 600,
51-
},
52-
],
35+
provider: fontProviders.local(),
36+
options: {
37+
variants: [
38+
{
39+
src: ["./public/fonts/aeonik/aeonik-light.otf"],
40+
style: "normal",
41+
weight: 300,
42+
},
43+
{
44+
src: ["./public/fonts/aeonik/aeonik-regular.otf"],
45+
style: "normal",
46+
weight: 400,
47+
},
48+
{
49+
src: ["./public/fonts/aeonik/aeonik-medium.otf"],
50+
style: "normal",
51+
weight: 600,
52+
},
53+
],
54+
},
5355
},
5456
],
5557
},

landing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@tailwindcss/vite": "^4.1.16",
1717
"@types/react": "^19.2.2",
1818
"@types/react-dom": "^19.2.2",
19-
"astro": "^5.15.0",
19+
"astro": "^5.18.0",
2020
"class-variance-authority": "^0.7.1",
2121
"clsx": "^2.1.1",
2222
"lucide-react": "^0.546.0",

0 commit comments

Comments
 (0)