To use the Site API, install the @wix/urls package using npm or Yarn:
@wix/urls
or
Then import { site } from @wix/urls:
{ site }