Move public assets to stable paths
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user