@@ -723,40 +723,15 @@ def __setitem__(self, key, value):
723723 },
724724}
725725
726- BASEROW_PUBLIC_URL = os .getenv ("BASEROW_PUBLIC_URL" )
726+ BASEROW_PUBLIC_URL = os .getenv ("BASEROW_PUBLIC_URL" , "" )
727727if BASEROW_PUBLIC_URL :
728728 PUBLIC_BACKEND_URL = BASEROW_PUBLIC_URL
729729 PUBLIC_WEB_FRONTEND_URL = BASEROW_PUBLIC_URL
730- if BASEROW_PUBLIC_URL == "http://localhost" :
731- print (
732- "WARNING: Baserow is configured to use a BASEROW_PUBLIC_URL of "
733- "http://localhost. If you attempt to access Baserow on any other hostname "
734- "requests to the backend will fail as they will be from an unknown host. "
735- "Please set BASEROW_PUBLIC_URL if you will be accessing Baserow "
736- "from any other URL then http://localhost."
737- )
738730else :
739731 PUBLIC_BACKEND_URL = os .getenv ("PUBLIC_BACKEND_URL" , "http://localhost:8000" )
740732 PUBLIC_WEB_FRONTEND_URL = os .getenv (
741733 "PUBLIC_WEB_FRONTEND_URL" , "http://localhost:3000"
742734 )
743- if "PUBLIC_BACKEND_URL" not in os .environ :
744- print (
745- "WARNING: Baserow is configured to use a PUBLIC_BACKEND_URL of "
746- "http://localhost:8000. If you attempt to access Baserow on any other "
747- "hostname requests to the backend will fail as they will be from an "
748- "unknown host."
749- "Please ensure you set PUBLIC_BACKEND_URL if you will be accessing "
750- "Baserow from any other URL then http://localhost."
751- )
752- if "PUBLIC_WEB_FRONTEND_URL" not in os .environ :
753- print (
754- "WARNING: Baserow is configured to use a default PUBLIC_WEB_FRONTEND_URL "
755- "of http://localhost:3000. Emails sent by Baserow will use links pointing "
756- "to http://localhost:3000 when telling users how to access your server. If "
757- "this is incorrect please ensure you have set PUBLIC_WEB_FRONTEND_URL to "
758- "the URL where users can access your Baserow server."
759- )
760735
761736BASEROW_EMBEDDED_SHARE_URL = os .getenv ("BASEROW_EMBEDDED_SHARE_URL" )
762737if not BASEROW_EMBEDDED_SHARE_URL :
0 commit comments