mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-09 08:05:00 -05:00
Compare commits
4 Commits
98056a1caf
...
24488494ae
| Author | SHA1 | Date | |
|---|---|---|---|
| 24488494ae | |||
| 801b7c9a0a | |||
| 738de7b6ee | |||
| 66096cf833 |
@ -62,6 +62,9 @@ const nextConfig = {
|
|||||||
typescript: {
|
typescript: {
|
||||||
ignoreBuildErrors: true,
|
ignoreBuildErrors: true,
|
||||||
},
|
},
|
||||||
|
experimental: {
|
||||||
|
missingSuspenseWithCSRBailout: false,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withContentlayer(nextConfig);
|
export default withContentlayer(nextConfig);
|
||||||
|
|||||||
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
import HomePageComponent from "@/components/feat/home-page/home-page";
|
import HomePageComponent from "@/components/feat/home-page/home-page";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import { Suspense } from "react";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
applicationName: "MHSF",
|
applicationName: "MHSF",
|
||||||
@ -41,7 +42,9 @@ export const metadata: Metadata = {
|
|||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
return (
|
return (
|
||||||
<div className="overflow-x-hidden">
|
<div className="overflow-x-hidden">
|
||||||
|
<Suspense>
|
||||||
<HomePageComponent />
|
<HomePageComponent />
|
||||||
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import { ServerProvider } from "@/components/feat/server-page/server-provider";
|
|||||||
import type { ServerResponse } from "@/lib/types/mh-server";
|
import type { ServerResponse } from "@/lib/types/mh-server";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { notFound } from "next/navigation";
|
import { notFound } from "next/navigation";
|
||||||
|
import { Suspense } from "react";
|
||||||
|
|
||||||
export async function generateMetadata({
|
export async function generateMetadata({
|
||||||
params,
|
params,
|
||||||
@ -25,7 +26,7 @@ export async function generateMetadata({
|
|||||||
// Generate the absolute URL for the OG image
|
// Generate the absolute URL for the OG image
|
||||||
const ogImageUrl = new URL(
|
const ogImageUrl = new URL(
|
||||||
`/api/og/server/${id}`,
|
`/api/og/server/${id}`,
|
||||||
process.env.NEXT_PUBLIC_APP_URL || "https://mhsf.app"
|
process.env.NEXT_PUBLIC_APP_URL || "https://mhsf.app",
|
||||||
).toString();
|
).toString();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -69,7 +70,9 @@ export default async function ServerPage({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
|
<Suspense>
|
||||||
<ServerProvider serverId={slug} />
|
<ServerProvider serverId={slug} />
|
||||||
|
</Suspense>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
import { ServerList } from "@/components/feat/server-list/server-list";
|
import { ServerList } from "@/components/feat/server-list/server-list";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import { Suspense } from "react";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
applicationName: "MHSF",
|
applicationName: "MHSF",
|
||||||
@ -40,7 +41,9 @@ export const metadata: Metadata = {
|
|||||||
export default function ServerListPage() {
|
export default function ServerListPage() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Suspense>
|
||||||
<ServerList />
|
<ServerList />
|
||||||
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
import { Settings } from "@/components/feat/settings/settings";
|
import { Settings } from "@/components/feat/settings/settings";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import { Suspense } from "react";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
applicationName: "MHSF",
|
applicationName: "MHSF",
|
||||||
@ -40,7 +41,10 @@ export const metadata: Metadata = {
|
|||||||
export default function ServerListPage() {
|
export default function ServerListPage() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Suspense
|
||||||
|
>
|
||||||
<Settings />
|
<Settings />
|
||||||
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import { Support } from "@/components/feat/support/support";
|
import { Support } from "@/components/feat/support/support";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import { Suspense } from "react";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
applicationName: "MHSF",
|
applicationName: "MHSF",
|
||||||
@ -9,7 +10,9 @@ export const metadata: Metadata = {
|
|||||||
export default function SupportPage() {
|
export default function SupportPage() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Suspense>
|
||||||
<Support />
|
<Support />
|
||||||
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user