Dispatch.yaml routing to a specific module version?

If there is a way to route a user subdomain (something.mydomain.com) to a specific version of a module?

This would mean that I can use the following:

www.mydomain.com - production site dev.mydomain.com - site for testing

I tried using the following in dispatch.yaml but I got an error while trying to update it

- url: "dev.mydomain.com/*"
  module: dev.app

Error:

Error parsing the yaml file: Unable to assign the value 'dev.app' to the attribute 'module': The value 'dev.app' for the module does not match the expression '^ (?: ^ (?! -) [az \ d -] {0,62 } [az \ d] $) $ 'in the row ". \ dispatch.yaml", row 15, column 13

I know that you can configure versions in queue.yaml and CRON (I think), so why not send?

+4
source share
1 answer

If you carefully read the error, you will notice that it complains about the module name dev.app ...

Rename your module to dev-app and try again.

-2
source

All Articles