Why is $DEFAULT_SITE_URL appearing in entries URL?
You probably have a misconfiguration in your environment variables - First go to the control panel and check what you have under Settings &gt; Sites &gt; [choose site] &gt; Base URL. If it's set to an env variable (i.e. it begins with a dollar sign), go to wherever you store your environment variables (e.g. the .env file, or maybe server env vars if you're on the remote), and check that you have a variable there with the expected value.