Skip to content

Conversation

@field123
Copy link
Collaborator

@field123 field123 commented Dec 9, 2025

Problem

Plasmic CLI commands fail with 404 errors because the CLI expects codegen endpoints on the main domain (integration.storefront.elasticpath.com), but our ALB only routes them
via the codegen subdomain (codegen.integration.storefront.elasticpath.com).

npx @plasmicapp/cli sync --projects PROJECT_ID
# Error: Invalid version. Must be a string. Got type "undefined"

Root Cause

  • CLI Logic: Assumes codegen APIs are on the same host as studio for custom deployments
  • Our Setup: Microservices with separate subdomains
  • Result: CLI requests hit main WAB service instead of codegen service → 404

Solution

Add path-based ALB listener rules to route codegen endpoints from main domain to codegen service.

Changes

File: terraform/services/codegen/main.tf

  • Added 3 aws_lb_listener_rule resources with higher priority than existing rules
  • Maintains existing host-based routing for codegen subdomain

@field123 field123 merged commit 53306c7 into master Dec 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants