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.