Skip to content

Commit 058b4d7

Browse files
rexkirshnerclaude
andcommitted
Fix Cloudflare Pages deployment - switch to Cloudflare adapter
Changes: - Replace @astrojs/node adapter with @astrojs/cloudflare - Add Cloudflare platformProxy configuration - Update site URL to https://strangewater.xyz The Node.js adapter doesn't work on Cloudflare Pages for SSR applications. This change enables proper SSR support on Cloudflare's platform. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 48d4755 commit 058b4d7

File tree

3 files changed

+4471
-3018
lines changed

3 files changed

+4471
-3018
lines changed

astro.config.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { defineConfig } from 'astro/config';
22
import tailwindcss from '@tailwindcss/vite';
33
import { fileURLToPath } from 'url';
4-
import node from '@astrojs/node';
4+
import cloudflare from '@astrojs/cloudflare';
55

66
// https://astro.build/config
77
export default defineConfig({
8-
site: 'https://my-podcast.com',
8+
site: 'https://strangewater.xyz',
99
output: 'server',
10-
adapter: node({
11-
mode: 'standalone'
10+
adapter: cloudflare({
11+
platformProxy: {
12+
enabled: true
13+
}
1214
}),
1315
vite: {
1416
plugins: [tailwindcss()],

0 commit comments

Comments
 (0)