-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
35 lines (30 loc) · 1 KB
/
astro.config.mjs
File metadata and controls
35 lines (30 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import { fileURLToPath } from 'url';
import cloudflare from '@astrojs/cloudflare';
// Uncomment below for Node.js deployment instead of Cloudflare:
// import node from '@astrojs/node';
// https://astro.build/config
export default defineConfig({
site: 'https://my-podcast.com', // Update with your actual domain
output: 'server', // Server-side rendering for dynamic API routes
// Cloudflare Pages adapter (recommended)
adapter: cloudflare({
platformProxy: {
enabled: true // Enable for local dev with Cloudflare bindings
},
imageService: 'compile' // Process images at build time, not runtime
}),
// Alternative: Node.js adapter (uncomment to use instead of Cloudflare)
// adapter: node({
// mode: 'standalone'
// }),
vite: {
plugins: [tailwindcss()],
resolve: {
alias: {
'@config': fileURLToPath(new URL('./podcast.config.js', import.meta.url))
}
}
}
});