To use the site module, import wixSiteFrontend from the wix-site-frontend module:
wixSiteFrontend
wix-site-frontend
1
The APIs in wix-site-frontend can only be used in front-end code.