Base: switch to remark adapter

This commit is contained in:
Akemi Izuko 2023-12-25 23:43:02 -07:00
parent d63f5e6e76
commit bf2a6b69ce
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC
3 changed files with 541 additions and 276 deletions

View file

@ -1,14 +1,26 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx'; import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap'; import sitemap from '@astrojs/sitemap';
import cloudflare from "@astrojs/cloudflare"; //import cloudflare from "@astrojs/cloudflare";
import remarkGfm from "remark-gfm";
import remarkRehype from "remark-rehype";
import tailwind from "@astrojs/tailwind"; import tailwind from "@astrojs/tailwind";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: 'https://example.com', site: 'https://dev.noway.moe',
output: "static",
integrations: [mdx(), sitemap(), tailwind()], integrations: [mdx(), sitemap(), tailwind()],
output: "server",
adapter: cloudflare() build: {
format: "file",
inlineStylesheets: "auto",
},
markdown: {
remarkPlugins: [
remarkGfm,
[remarkRehype, { clobberPrefix: "" }],
],
gfm: true,
}
}); });

789
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -12,12 +12,14 @@
"pages:deploy": "astro build && wrangler pages deploy ./dist" "pages:deploy": "astro build && wrangler pages deploy ./dist"
}, },
"dependencies": { "dependencies": {
"@astrojs/cloudflare": "^8.0.0",
"@astrojs/mdx": "^2.0.2", "@astrojs/mdx": "^2.0.2",
"@astrojs/rss": "^4.0.1", "@astrojs/rss": "^4.0.1",
"@astrojs/sitemap": "^3.0.3", "@astrojs/sitemap": "^3.0.3",
"@astrojs/tailwind": "^5.0.4", "@astrojs/tailwind": "^5.0.4",
"astro": "^4.0.7", "astro": "^4.0.7",
"remark-gfm": "^4.0.0",
"remark-rehype": "^11.0.0",
"sharp": "^0.33.1",
"tailwindcss": "^3.4.0" "tailwindcss": "^3.4.0"
}, },
"devDependencies": { "devDependencies": {