fix: it finally builds

This commit is contained in:
dvelo 2025-05-04 23:09:15 -05:00
parent 3ca0cadfbc
commit cb86c627d6
7 changed files with 17 additions and 94 deletions

@ -28,8 +28,9 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** @type {import('next-sitemap').IConfig} */ const obj = {
module.exports = {
siteUrl: "https://mhsf.app", siteUrl: "https://mhsf.app",
generateRobotsTxt: true generateRobotsTxt: true
} }
export default obj;

@ -1,49 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://mhsf.app/dashboard</loc><lastmod>2025-02-14T18:54:35.340Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/settings</loc><lastmod>2025-05-05T04:09:03.452Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/account/settings</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/support</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/account/settings/options</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/waitlist/oauth-need-discord</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/waitlist/ref</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/account/favorites</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/servers/embedded/sl-modification-frame</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/advanced%2Fachievements</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/home</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/advanced%2Fcommand-bar</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/servers/embedded/sl-modification-frame/files</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/advanced%2Fexternal</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/servers</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/advanced%2Ftech-stack</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> <url><loc>https://mhsf.app/waitlist</loc><lastmod>2025-05-05T04:09:03.471Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/getting-started</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/guides%2Fcustomization</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/guides%2Flinking</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/guides%2Fowning-a-server</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/guides%2Freporting-server</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/legal%2Fexternal-content-agreement</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://mhsf.app/docs/reading</loc><lastmod>2025-02-14T18:54:35.389Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset> </urlset>

@ -1,34 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://mhsf.app/sitemap-0.xml</loc></sitemap> <sitemap><loc>https://mhsf.app/sitemap-0.xml</loc></sitemap>
</sitemapindex> </sitemapindex>

@ -27,22 +27,13 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
"use client";
import "../globals.css"; import "../globals.css";
import { useSearchParams } from "next/navigation";
import { Placeholder } from "@/components/ui/placeholder";
import { X } from "lucide-react";
import { IsScript } from "@/components/util/is-script"; import { IsScript } from "@/components/util/is-script";
import { Button } from "@/components/ui/button";
import Link from "next/link";
import { NavBar } from "@/components/feat/navbar/navbar";
import { TooltipProvider } from "@/components/ui/tooltip"; import { TooltipProvider } from "@/components/ui/tooltip";
import { ThemeProvider } from "@/components/util/theme-provider"; import { ThemeProvider } from "@/components/util/theme-provider";
import { FontBoundary } from "@/components/util/font-boundary"; import { FontBoundary } from "@/components/util/font-boundary";
import { ClerkProvider } from "@/components/util/clerk-provider"; import { ClerkProvider } from "@/components/util/clerk-provider";
import { Toaster } from "sonner"; import { Toaster } from "sonner";
import { Footer } from "@/components/feat/footer/footer";
import { NuqsAdapter } from "nuqs/adapters/next/app"; import { NuqsAdapter } from "nuqs/adapters/next/app";
import { IframeProtector } from "@/components/util/iframe-protector"; import { IframeProtector } from "@/components/util/iframe-protector";
import NextTopLoader from "@/components/util/top-loader"; import NextTopLoader from "@/components/util/top-loader";
@ -52,8 +43,6 @@ export default function RootLayout({
}: { }: {
children: React.ReactNode; children: React.ReactNode;
}) { }) {
const searchParams = useSearchParams();
const search = searchParams?.get("theme") || "light";
return ( return (
<> <>

@ -27,7 +27,6 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
"use client";
import { NotFoundComponent } from "@/components/util/not-found"; import { NotFoundComponent } from "@/components/util/not-found";
import type { Metadata } from "next"; import type { Metadata } from "next";

@ -35,12 +35,11 @@ import {
SignedIn, SignedIn,
SignedOut, SignedOut,
useReverification, useReverification,
useSignIn,
useUser, useUser,
} from "@clerk/nextjs"; } from "@clerk/nextjs";
import type { CreateExternalAccountParams, OAuthStrategy } from "@clerk/types"; import type { CreateExternalAccountParams, OAuthStrategy } from "@clerk/types";
import { UserInformation } from "./waitlist-page"; import { UserInformation } from "./waitlist-page";
import { useEffect, useState } from "react"; import { useState } from "react";
import { Spinner } from "@/components/ui/spinner"; import { Spinner } from "@/components/ui/spinner";
import { useEffectOnce } from "@/lib/useEffectOnce"; import { useEffectOnce } from "@/lib/useEffectOnce";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
@ -80,7 +79,7 @@ function SignedInBoundary() {
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
const router = useRouter(); const router = useRouter();
const { isLoaded, user } = useUser(); const { user } = useUser();
const createExternalAccount = useReverification( const createExternalAccount = useReverification(
(params: CreateExternalAccountParams) => (params: CreateExternalAccountParams) =>
user?.createExternalAccount(params), user?.createExternalAccount(params),

@ -28,6 +28,8 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
"use client";
import { X } from "lucide-react"; import { X } from "lucide-react";
import { Placeholder } from "../ui/placeholder"; import { Placeholder } from "../ui/placeholder";
import Link from "next/link"; import Link from "next/link";