I can't believe I've done this
This commit is contained in:
parent
ad16ec438b
commit
64033cec22
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ function get_path(file: string[]) {
|
|||
}
|
||||
|
||||
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(
|
||||
|
|
|
@ -12,7 +12,7 @@ export default function App() {
|
|||
<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.
|
||||
</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 ?
|
||||
<>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></>
|
||||
|
|
Loading…
Reference in a new issue