References to other service in static site definition

Hello all,

I want to reference another service from a static web site in a rewrite rule.

By doing so in the dashboard interface this is a trivial task but I need to do it in a blueprint yaml definition.

services:
  - name: my-static-service
    # Rest of service definition goes here
    staticPublishPath: dist
    routes:
      - type: rewrite
        source: /api/*
        destination: https://${my-backend-service.publicHost}/api/*

      - type: rewrite
        source: /*
        destination: /index.html

Can I do something like this or I would need to add the rule manually in the dashboard after I’ve applied the blueprint?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.