chore: support dns use_username_in_magic_dns config

This commit is contained in:
Aarnav Tale 2024-09-25 16:22:00 -04:00
parent 90f0bf2555
commit 58e98278d1
No known key found for this signature in database
6 changed files with 16 additions and 10 deletions

View file

@ -32,6 +32,10 @@ export async function loader({ request }: LoaderFunctionArgs) {
if (config.dns.magic_dns) {
magic = config.dns.base_domain
}
if (config.dns.use_username_in_magic_dns) {
magic = `[user].${magic}`
}
}
return {
@ -76,7 +80,7 @@ export default function Page() {
based on their name and also at
{' '}
<Code>
[name].[user].
[name].
{data.magic}
</Code>
</Tooltip>