Move blogposts to mdx
This commit is contained in:
parent
cf180442c3
commit
0a76dd6172
17 changed files with 1165 additions and 370 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { defineConfig, envField } from "astro/config";
|
||||
import tailwindIntegration from "@astrojs/tailwind";
|
||||
import markdownIntegration from "@astropub/md";
|
||||
import mdxIntegration from "@astrojs/mdx";
|
||||
import htaccessIntegration from "astro-htaccess";
|
||||
import pagefindIntegration from "astro-pagefind";
|
||||
import { AI_BOTS } from "./src/data/ai_bots";
|
||||
|
|
@ -13,6 +14,7 @@ export default defineConfig({
|
|||
applyBaseStyles: false,
|
||||
}),
|
||||
markdownIntegration(),
|
||||
mdxIntegration(),
|
||||
htaccessIntegration({
|
||||
generateHtaccessFile: import.meta.env.APACHE_CONFIG === "true",
|
||||
customRules: [
|
||||
|
|
@ -25,8 +27,14 @@ export default defineConfig({
|
|||
"</IfModule>",
|
||||
],
|
||||
redirects: [
|
||||
{ match: "/story/", url: "/stories/" },
|
||||
{ match: "/game/", url: "/games/" },
|
||||
{
|
||||
match: "/story/",
|
||||
url: "/stories/",
|
||||
},
|
||||
{
|
||||
match: "/game/",
|
||||
url: "/games/",
|
||||
},
|
||||
],
|
||||
}),
|
||||
pagefindIntegration(),
|
||||
|
|
@ -44,8 +52,16 @@ export default defineConfig({
|
|||
experimental: {
|
||||
env: {
|
||||
schema: {
|
||||
APACHE_CONFIG: envField.boolean({ context: "server", access: "public", default: false }),
|
||||
PUBLISH_DRAFTS: envField.boolean({ context: "server", access: "public", default: false }),
|
||||
APACHE_CONFIG: envField.boolean({
|
||||
context: "server",
|
||||
access: "public",
|
||||
default: false,
|
||||
}),
|
||||
PUBLISH_DRAFTS: envField.boolean({
|
||||
context: "server",
|
||||
access: "public",
|
||||
default: false,
|
||||
}),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue