platform/astro.config.mjs
Ryan Malloy e6d335f5b5 Initial commit: story-teller.ink platform
- Complete Astro + Alpine.js implementation
- Docker Compose setup with Caddy reverse proxy
- Dual platform: Anonymous & Named Storytellers
- Interactive features: voting, comments, filtering
- Categories page with search functionality
- Content collections for markdown stories
- Responsive design with accessibility features
- Environment variable configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 23:35:55 -06:00

31 lines
628 B
JavaScript

import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
export default defineConfig({
integrations: [tailwind()],
site: process.env.PUBLIC_SITE_URL || 'https://st.l.supported.systems',
output: 'static',
server: {
host: '0.0.0.0',
port: 4321
},
// Handle domain routing for both .ink domains
vite: {
define: {
global: 'globalThis',
},
server: {
host: '0.0.0.0',
allowedHosts: [
process.env.DOMAIN || 'st.l.supported.systems',
'localhost',
'127.0.0.1'
],
fs: {
allow: ['..']
}
}
}
});