Move public assets to stable paths

This commit is contained in:
2026-10-04 16:13:47 +05:00
parent 53d7b263c4
commit 5289c17adf
12 changed files with 118 additions and 31 deletions

View File

@@ -4,8 +4,8 @@ import { existsSync } from "node:fs";
import Link from "next/link";
export const dynamic = "force-dynamic";
export default function Downloads() {
const fabric = existsSync("public/downloads/minegeo-fabric-1.21.11.jar"),
plugin = existsSync("public/downloads/minegeo-plugin-1.21.11.jar");
const fabric = existsSync("public/tools/mod/minegeo-fabric-1.21.11.jar"),
plugin = existsSync("public/tools/plugin/minegeo-plugin-1.21.11.jar");
return (
<>
<Header />
@@ -37,7 +37,7 @@ export default function Downloads() {
{fabric ? (
<a
className="button primary"
href="/downloads/minegeo-fabric-1.21.11.jar"
href="/tools/mod/minegeo-fabric-1.21.11.jar"
download
>
<Download size={16} /> Download Fabric mod
@@ -68,7 +68,7 @@ export default function Downloads() {
{plugin ? (
<a
className="button primary"
href="/downloads/minegeo-plugin-1.21.11.jar"
href="/tools/plugin/minegeo-plugin-1.21.11.jar"
download
>
<Download size={16} /> Download server plugin

View File

@@ -70,7 +70,7 @@ export default async function Home() {
</div>
<div className="map-art-frame">
<Image
src="/generated/paper-proof/map.webp"
src="/images/example-map.webp"
alt="Top-down map of the real Paper renderer test world"
width={1024}
height={1024}