refactor: use YAML for products
Added YAML support as per https://docs.astro.build/en/recipes/add-yaml-support and converted products.json to products.yaml.
This commit is contained in:
parent
64a0f9e90b
commit
2e633d3a96
6 changed files with 114 additions and 86 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import mdx from "@astrojs/mdx";
|
||||
import tailwind from "@astrojs/tailwind";
|
||||
import { defineConfig } from "astro/config";
|
||||
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
import tailwind from "@astrojs/tailwind";
|
||||
import yaml from "@rollup/plugin-yaml";
|
||||
import { defineConfig } from "astro/config";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
|
|
@ -22,5 +22,8 @@ export default defineConfig({
|
|||
}
|
||||
}),
|
||||
],
|
||||
site: "https://www.oliverdavies.uk"
|
||||
site: "https://www.oliverdavies.uk",
|
||||
vite: {
|
||||
plugins: [yaml()],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue