upgrade astro, deploy to cloudflare

This commit is contained in:
Avraham Sakal
2024-12-06 12:23:11 -05:00
parent 345a18729a
commit 1d0f679dea
4 changed files with 1637 additions and 525 deletions
+3 -5
View File
@@ -1,9 +1,9 @@
// @ts-check
import { defineConfig } from "astro/config";
import fulldev from "fulldev-ui/integration";
import node from "@astrojs/node";
import UnoCSS from "unocss/astro";
import mdx from "@astrojs/mdx";
import cloudflare from "@astrojs/cloudflare";
// import { createRequire } from "node:module";
// const require = createRequire(import.meta.url);
@@ -11,11 +11,9 @@ import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
// pre-render by default; opt-in to dynamic SSR:
output: "hybrid",
output: "server",
adapter: node({
mode: "standalone",
}),
adapter: cloudflare(),
integrations: [
mdx(),
+6 -5
View File
@@ -12,14 +12,15 @@
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/mdx": "^3.1.9",
"@astrojs/node": "^8.3.4",
"astro": "^4.16.13",
"@astrojs/cloudflare": "^12.0.1",
"@astrojs/mdx": "^4.0.1",
"astro": "^5.0.3",
"fulldev-ui": "^0.4.33",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"devDependencies": {
"@unocss/preset-uno": "^0.64.1",
"unocss": "^0.64.1"
"unocss": "^0.64.1",
"wrangler": "^3.93.0"
}
}
+1621 -514
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
# Generated by Wrangler on Fri Dec 06 2024 12:22:28 GMT-0500 (Eastern Standard Time)
name = "blog"
compatibility_date = "2024-12-06"
[env]
production = { }