0

I have public site metadata in my local project.

I have created an unlocked package and now I am trying to create a first package version and face an issue:

[Site Name]: The Force.com Site subdomain has not been set in the organization.

Dev Hub, which is connected for version creation has an appropriate subdomain. What I miss?

Thanks in advance.

3
  • Please check if this helps Jun 8 '21 at 11:58
  • Based on your comment, I may have misunderstood that metadata. My apologies. Still, part of my answer still stands: whatever is in your Dev Hub is not part of your Unlocked Package. You must specify things like subdomains in your package metadata, and not rely on any configuration in the Dev Hub org (unless you plan on making it an Org Dependent package).
    – sfdcfox
    Jun 9 '21 at 13:09
  • Got it. I am a bit confused about how can I specify subdomains in my metadata. All I have is Site metadata and when I push it to scratch org, the Site is set up properly and everything works as expected. But with a package, there is an issue mentioned above.
    – Igor
    Jun 9 '21 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.