mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
571986c94c
- Set site: 'https://www.aitmpl.com' in astro.config.mjs so import.meta.env.SITE is defined - Server-side fetch resolves relative /components.json URL using SITE, VERCEL_URL, or localhost fallback - Fixes "fetch failed" error on component detail pages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
406 B
JavaScript
18 lines
406 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import react from '@astrojs/react';
|
|
import vercel from '@astrojs/vercel';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
site: 'https://www.aitmpl.com',
|
|
output: 'server',
|
|
adapter: vercel(),
|
|
integrations: [react()],
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
resolve: {
|
|
dedupe: ['react', 'react-dom'],
|
|
},
|
|
},
|
|
});
|