Skip to content

Commit 5692f28

Browse files
committed
Remove experimental feature in Astro 6
Flags are now stable and become a default behaviour. See https://docs.astro.build/en/reference/experimental-flags/ Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
1 parent ce5e800 commit 5692f28

1 file changed

Lines changed: 8 additions & 13 deletions

File tree

astro.config.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,12 @@ export default defineConfig({
5757
}),
5858
},
5959
},
60-
experimental: {
61-
preserveScriptOrder: true,
62-
fonts: [
63-
{
64-
name: "Google Sans Code",
65-
cssVariable: "--font-google-sans-code",
66-
provider: fontProviders.google(),
67-
fallbacks: ["monospace"],
68-
weights: [300, 400, 500, 600, 700],
69-
styles: ["normal", "italic"],
70-
},
71-
],
72-
},
60+
fonts: [{
61+
provider: fontProviders.fontsource(),
62+
name: "Google Sans Code",
63+
cssVariable: "--font-google-sans-code",
64+
fallbacks: ["monospace"],
65+
weights: [300, 400, 500, 600, 700],
66+
styles: ["normal", "italic"],
67+
}],
7368
});

0 commit comments

Comments
 (0)