-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
executable file
·29 lines (25 loc) · 1.03 KB
/
Copy pathastro.config.mjs
File metadata and controls
executable file
·29 lines (25 loc) · 1.03 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
// @ts-check
// Enable TypeScript type checking for this configuration file
// Import Astro's configuration definition utility
import { defineConfig } from 'astro/config';
// Import the Vercel adapter for server-side rendering deployment
import vercel from '@astrojs/vercel';
/**
* Astro Configuration File
*
* This configuration sets up BuildLoom for server-side rendering (SSR)
* and deployment to Vercel. The SSR mode is essential for:
* - Dynamic API routes that interact with Claude AI and PostgreSQL
* - Real-time conversation handling without pre-rendering
* - Server-side environment variable access for API credentials
*
* @see https://astro.build/config
*/
export default defineConfig({
// Set output mode to 'server' for SSR (Server-Side Rendering)
// This allows pages and API routes to be rendered on-demand rather than at build time
output: 'server',
// Use the Vercel adapter for deployment
// This configures Astro to generate Vercel-compatible serverless functions
adapter: vercel(),
});