Skip to content

Commit d8f4d33

Browse files
committed
adding dev-v0.16.1 tag to this commit to ensure building
1 parent c2f7d31 commit d8f4d33

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

html/supertokens_python/constants.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1 class="title">Module <code>supertokens_python.constants</code></h1>
4242
from __future__ import annotations
4343

4444
SUPPORTED_CDI_VERSIONS = [&#34;3.0&#34;]
45-
VERSION = &#34;0.16.0&#34;
45+
VERSION = &#34;0.16.1&#34;
4646
TELEMETRY = &#34;/telemetry&#34;
4747
USER_COUNT = &#34;/users/count&#34;
4848
USER_DELETE = &#34;/user/remove&#34;

html/supertokens_python/utils.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,13 @@ <h1 class="title">Module <code>supertokens_python.utils</code></h1>
327327

328328
if hostname.startswith(&#34;localhost&#34;) or is_an_ip_address(hostname):
329329
return &#34;localhost&#34;
330+
330331
parsed_url: Any = extract(hostname, include_psl_private_domains=True)
331332
if parsed_url.domain == &#34;&#34;: # type: ignore
333+
# We need to do this because of https://github.com/supertokens/supertokens-python/issues/394
334+
if hostname.endswith(&#34;.amazonaws.com&#34;) and parsed_url.suffix == hostname:
335+
return hostname
336+
332337
raise Exception(
333338
&#34;Please make sure that the apiDomain and websiteDomain have correct values&#34;
334339
)
@@ -581,8 +586,13 @@ <h2 class="section-title" id="header-functions">Functions</h2>
581586

582587
if hostname.startswith(&#34;localhost&#34;) or is_an_ip_address(hostname):
583588
return &#34;localhost&#34;
589+
584590
parsed_url: Any = extract(hostname, include_psl_private_domains=True)
585591
if parsed_url.domain == &#34;&#34;: # type: ignore
592+
# We need to do this because of https://github.com/supertokens/supertokens-python/issues/394
593+
if hostname.endswith(&#34;.amazonaws.com&#34;) and parsed_url.suffix == hostname:
594+
return hostname
595+
586596
raise Exception(
587597
&#34;Please make sure that the apiDomain and websiteDomain have correct values&#34;
588598
)

0 commit comments

Comments
 (0)