refactor: move website files to the root level

This commit is contained in:
Oliver Davies 2023-03-21 20:44:42 +00:00
parent c2887ecbc5
commit 2cbbfd60ff
590 changed files with 0 additions and 4484 deletions

30
astro.config.mjs Normal file
View file

@ -0,0 +1,30 @@
import { defineConfig } from "astro/config";
import alpinejs from "@astrojs/alpinejs";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
// https://astro.build/config
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
integrations: [
alpinejs(),
mdx(),
sitemap({
serialize(item) {
// To prevent crawling errors, remove the trailing slash from the URL
// otherwise it will be a link to a redirect URL and not the content.
item.url = item.url.replace(/\/$/, "");
return item;
},
}),
tailwind({
config: {
applyBaseStyles: false,
},
}),
],
site: "https://www.oliverdavies.uk",
});