fix(cors,n8n): fix CORS for production, add unattended n8n init with seed #47
Reference in New Issue
Block a user
Delete Branch "fix/cors-n8n-init-seed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
- Change CORS_ORIGIN from localhost:4000 to farmacias.hacecalor.net in docker-compose.yml - Add postgres and parapharmacy-api healthchecks - Add n8n-init service that runs BEFORE n8n starts: - Imports workflows via n8n CLI - Activates all workflows via publish:workflow - Seeds parapharmacy DB with 20 test products - Fix parapharmacy-api healthcheck to use node instead of wget (not available in image) - Fix seed.json to use {products: [...]} format with required source_url field - Remove activate-workflows.js (replaced by CLI approach)