rebours/astro.config.mjs
ordinarthur f4ac81dac3 feat: full product management from admin with image upload
- Add @adminjs/upload for image management (JPEG/PNG/WebP, max 5MB)
- Auto-compute imagePath, ogImage, slug, seoTitle, seoDescription
- Stripe price auto-sync on product create/edit
- Serve uploads via Fastify + nginx /uploads/ location
- Add imageKey/imageMime fields to schema
- Hide technical fields from admin edit form
- Add uploads/ and SQLite DB to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 23:38:11 +01:00

21 lines
490 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
export default defineConfig({
output: 'static',
outDir: './dist',
server: { port: 4321 },
vite: {
server: {
proxy: {
'/api': 'http://127.0.0.1:8888',
'/admin': 'http://127.0.0.1:8888',
'/uploads': {
target: 'http://127.0.0.1:8888',
rewrite: (p) => p,
},
},
},
},
});