{{ host }}{% if apex_host is defined and apex_host %}, {{ apex_host }}{% endif %} {
  # PocketBase Admin UI and REST API
  redir /_ /_/
  handle /_/* {
    reverse_proxy {{ container_name }}:8090
  }
  handle /api/* {
    reverse_proxy {{ container_name }}:8090
  }

  # TanStack Start Frontend Application
  handle {
    reverse_proxy {{ container_name }}:3000
  }
}

{% if admin_host is defined and admin_host %}
{{ admin_host }} {
  redir / /_/
  reverse_proxy {{ container_name }}:8090
}
{% endif %}
