mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-09 14:34:58 -05:00
Compare commits
12 Commits
5151d2fb13
...
b2daa04755
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2daa04755 | ||
|
|
e29262893e | ||
|
|
43d8706472 | ||
|
|
fbb8ae91fb | ||
|
|
d0c01919c5 | ||
|
|
bc06b79bf5 | ||
|
|
032a4b67f1 | ||
|
|
299e34d21f | ||
|
|
43ec081367 | ||
|
|
8fd0f90472 | ||
|
|
5a95f5edd8 | ||
|
|
4bc9b6ebcc |
31
apps/www/next.config.js
Normal file
31
apps/www/next.config.js
Normal file
@ -0,0 +1,31 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "img.clerk.com",
|
||||
},
|
||||
],
|
||||
},
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
source: "/docs",
|
||||
destination: "/docs/getting-started",
|
||||
permanent: true,
|
||||
},
|
||||
];
|
||||
},
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
output: "standalone",
|
||||
// Disable static error pages generation
|
||||
staticPageGenerationTimeout: 0,
|
||||
}; //
|
||||
|
||||
export default nextConfig;
|
||||
@ -53,6 +53,12 @@ const nextConfig = {
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
output: "standalone",
|
||||
experimental: {
|
||||
serverActions: {
|
||||
allowedOrigins: ["localhost:3000", "mhsf.app"],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
"inngest": "npx inngest-cli@latest dev",
|
||||
"postbuild": "next-sitemap"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.24.7",
|
||||
"@biomejs/biome": "^1.8.3",
|
||||
|
||||
@ -1,46 +0,0 @@
|
||||
/*
|
||||
* MHSF, Minehut Server List
|
||||
* All external content is rather licensed under the ECA Agreement
|
||||
* located here: https://mhsf.app/docs/legal/external-content-agreement
|
||||
*
|
||||
* All code under MHSF is licensed under the MIT License
|
||||
* by open source contributors
|
||||
*
|
||||
* Copyright (c) 2025 dvelo
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal in the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import Link from "next/link";
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<main>
|
||||
<div className="pt-[60px] p-4">
|
||||
<strong>404 - Page not found</strong>
|
||||
<br />
|
||||
<p>
|
||||
We couldn't find the page you were looking for.{" "}
|
||||
<Link href="/public">Go home</Link>
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
20
apps/www/src/app/global-error.tsx
Normal file
20
apps/www/src/app/global-error.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
'use client';
|
||||
|
||||
export default function GlobalError({
|
||||
error,
|
||||
reset,
|
||||
}: {
|
||||
error: Error & { digest?: string };
|
||||
reset: () => void;
|
||||
}) {
|
||||
return (
|
||||
<html>
|
||||
<body>
|
||||
<div>
|
||||
<h1>Something went wrong!</h1>
|
||||
<button onClick={() => reset()}>Try again</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@ -1,16 +1,49 @@
|
||||
import Footer from "@/components/misc/Footer";
|
||||
import Link from "next/link";
|
||||
/*
|
||||
* MHSF, Minehut Server List
|
||||
* All external content is rather licensed under the ECA Agreement
|
||||
* located here: https://mhsf.app/docs/legal/external-content-agreement
|
||||
*
|
||||
* All code under MHSF is licensed under the MIT License
|
||||
* by open source contributors
|
||||
*
|
||||
* Copyright (c) 2025 dvelo
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal in the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
export default function NotFound() {
|
||||
export default async function NotFound() {
|
||||
return (
|
||||
<>
|
||||
<span className="flex justify-center items-center text-center min-h-screen h-max">
|
||||
<div className="block">
|
||||
That page couldn't be found <br />
|
||||
<Link href="/">Go home</Link>
|
||||
<html>
|
||||
<body>
|
||||
<div className="min-h-screen flex items-center justify-center flex-col">
|
||||
<div className="text-center">
|
||||
<h1 className="text-4xl font-bold mb-4">404 - Page Not Found</h1>
|
||||
<p className="mb-4">
|
||||
The page you are looking for could not be found.
|
||||
</p>
|
||||
<a href="/" className="text-blue-500 hover:underline">
|
||||
Return to Home
|
||||
</a>
|
||||
</div>
|
||||
</span>
|
||||
<Footer />
|
||||
</>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
8715
apps/www/yarn.lock
8715
apps/www/yarn.lock
File diff suppressed because it is too large
Load Diff
5158
docs/yarn.lock
5158
docs/yarn.lock
File diff suppressed because it is too large
Load Diff
@ -16,8 +16,5 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"packageManager": "yarn@1.22.22",
|
||||
"workspaces": [
|
||||
"apps/*",
|
||||
"packages/*"
|
||||
]
|
||||
"workspaces": ["apps/*", "packages/*"]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user