Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

Commit 7dd819c

Browse files
committed
build: use cloud flare
1 parent b8c1ec5 commit 7dd819c

File tree

3 files changed

+288
-3
lines changed

3 files changed

+288
-3
lines changed

astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import remarkDirectiveRehype from 'remark-directive-rehype';
1515
import remarkCodeTitles from 'remark-flexible-code-titles';
1616
import remarkEmoji from 'remark-emoji';
1717
import { toc } from 'mdast-util-toc';
18-
import node from '@astrojs/node';
18+
import cloudflare from '@astrojs/cloudflare';
1919

2020
refractor.alias('html', ['vue', 'svelte']);
2121
const rehypePrismPlus = rehypePrismGenerator(refractor);
@@ -90,5 +90,5 @@ export default defineConfig({
9090
rehypePlugins
9191
},
9292
output: "server",
93-
adapter: node({ mode: "standalone" })
93+
adapter: cloudflare()
9494
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"lint:fix": "eslint . --fix"
1717
},
1818
"dependencies": {
19+
"@astrojs/cloudflare": "^9.1.0",
1920
"astro": "^4.5.4",
2021
"date-fns": "^3.5.0",
2122
"disqusjs": "^3.0.3-canary.1",

0 commit comments

Comments
 (0)