From 64033cec22b86c6caa871f78a7bc762a214af87a Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Sun, 6 Oct 2024 18:55:39 +0000 Subject: [PATCH] I can't believe I've done this --- src/app/[...file]/page.tsx | 2 +- src/app/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/[...file]/page.tsx b/src/app/[...file]/page.tsx index cde757a..dcbc74a 100644 --- a/src/app/[...file]/page.tsx +++ b/src/app/[...file]/page.tsx @@ -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( diff --git a/src/app/page.tsx b/src/app/page.tsx index 620d148..444a3ca 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -12,7 +12,7 @@ export default function App() {

Motto is a static file server beautifier. Click here for more information.

-

This instance is currently pointed to {process.env.ROOT_URL} { +

This instance is currently pointed to {`https://${process.env.ROOT_URL}`} { supports_repointing ? <>but supports repointing. : <>and does not support repointing.