-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
55 lines (50 loc) · 1.23 KB
/
Copy pathastro.config.mjs
File metadata and controls
55 lines (50 loc) · 1.23 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import cloudflare from '@astrojs/cloudflare';
export default defineConfig({
output: 'server',
adapter: cloudflare({
kvNamespaces: [],
imageService: 'cloudflare-binding',
}),
experimental: {
queuedRendering: {
enabled: true,
poolSize: 2000,
},
},
security: {
checkOrigin: true,
allowedDomains: [
{ hostname: '**.timorup.com', protocol: 'https' },
{ hostname: 'timorup.jasonwill.workers.dev', protocol: 'https' },
{ hostname: 'localhost:*', protocol: 'http' },
],
actionBodySizeLimit: 2 * 1024 * 1024,
serverIslandBodySizeLimit: 2 * 1024 * 1024,
},
site: 'https://timorup.com',
prefetch: {
defaultStrategy: 'viewport',
defaultBundler: 'astro',
},
compressHTML: true,
integrations: [],
vite: {
plugins: [
tailwindcss(),
],
ssr: {
external: ['cloudflare:workers', 'better-auth', '@better-auth/kysely-adapter'],
},
resolve: {
alias: {
'@': new URL('./src', import.meta.url).pathname,
},
},
optimizeDeps: {
exclude: ['better-auth', '@better-auth/kysely-adapter'],
noDiscovery: true,
},
},
});