chore: update for cloudflare

This commit is contained in:
Alejandro Laguna
2025-08-25 19:38:45 +02:00
parent bf9ee11b5f
commit 2284eefae3
3 changed files with 907 additions and 196 deletions

View File

@@ -2,8 +2,7 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import tailwindcss from "@tailwindcss/vite"; import tailwindcss from "@tailwindcss/vite";
import astroIcon from "astro-icon" import astroIcon from "astro-icon"
import cloudflare from '@astrojs/cloudflare';
import node from "@astrojs/node";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
@@ -12,7 +11,5 @@ export default defineConfig({
server: { server: {
host: '0.0.0.0' host: '0.0.0.0'
}, },
adapter: node({ adapter: cloudflare(),
mode: "standalone",
}),
}); });

1094
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,7 @@
"start": "node ./dist/server/entry.mjs" "start": "node ./dist/server/entry.mjs"
}, },
"dependencies": { "dependencies": {
"@astrojs/node": "^9.3.3", "@astrojs/cloudflare": "^12.6.5",
"@tailwindcss/vite": "^4.1.11", "@tailwindcss/vite": "^4.1.11",
"astro": "^5.12.8", "astro": "^5.12.8",
"astro-icon": "^1.1.5", "astro-icon": "^1.1.5",