I can't believe I've done this

This commit is contained in:
Gnarwhal 2024-10-06 18:55:39 +00:00
parent ad16ec438b
commit 64033cec22
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ function get_path(file: string[]) {
} }
function get_root(enable_repointing: boolean, search_params: SearchParams) { function get_root(enable_repointing: boolean, search_params: SearchParams) {
return `https://${search_params['root'] ?? 'raw.monodon.me'}/`; return `https://${search_params['root'] ?? process.env.ROOT_URL}/`;
} }
export async function generateMetadata( export async function generateMetadata(

View file

@ -12,7 +12,7 @@ export default function App() {
<p className={style.description}> <p className={style.description}>
Motto is a static file server beautifier. <a href="https://forge.monodon.me/Gnarwhal/motto/">Click here</a> for more information. Motto is a static file server beautifier. <a href="https://forge.monodon.me/Gnarwhal/motto/">Click here</a> for more information.
</p> </p>
<p>This instance is currently pointed to <a href={process.env.ROOT_URL}>{process.env.ROOT_URL}</a> { <p>This instance is currently pointed to <a href={`https://${process.env.ROOT_URL}`}>{`https://${process.env.ROOT_URL}`}</a> {
supports_repointing ? supports_repointing ?
<>but supports <a href="https://forge.monodon.me/Gnarwhal/motto#Repointing">repointing.</a></> : <>but supports <a href="https://forge.monodon.me/Gnarwhal/motto#Repointing">repointing.</a></> :
<>and does not support <a href="https://forge.monodon.me/Gnarwhal/motto#Repointing">repointing.</a></> <>and does not support <a href="https://forge.monodon.me/Gnarwhal/motto#Repointing">repointing.</a></>