- Downgrade @astrojs/tailwind to v5.1.1 for v3 compatibility - Remove @tailwindcss/vite dependency (v4 specific) - Update tailwindcss to v3.4.17 - Fix astro.config.mjs to use standard Tailwind integration - Update CSS imports to use v3 @tailwind directives Fixes server deployment build failures due to dependency conflicts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
671 B
JavaScript
35 lines
671 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
import react from '@astrojs/react';
|
|
import tailwind from '@astrojs/tailwind';
|
|
import node from '@astrojs/node';
|
|
import sentry from '@sentry/astro';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: 'server',
|
|
integrations: [
|
|
react(),
|
|
tailwind(),
|
|
sentry({
|
|
dsn: process.env.SENTRY_DSN,
|
|
environment: process.env.NODE_ENV || 'development',
|
|
release: process.env.SENTRY_RELEASE || 'unknown'
|
|
})
|
|
],
|
|
adapter: node({
|
|
mode: 'standalone'
|
|
}),
|
|
|
|
|
|
server: {
|
|
port: 4321,
|
|
host: true
|
|
},
|
|
|
|
// Security headers
|
|
security: {
|
|
checkOrigin: true
|
|
}
|
|
}); |