This commit is contained in:
parent
297fd882da
commit
319c4c13ea
@ -1,4 +1,5 @@
|
|||||||
import AppProvider from "@/components/AppProvider";
|
import AppProvider from "@/components/AppProvider";
|
||||||
|
import { SSRSettings } from "@/ssrSettings";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
@ -9,13 +10,13 @@ const font = Inter({ subsets: ["latin-ext"], weight: "500" });
|
|||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: {
|
title: {
|
||||||
template: "Scoresaber Reloaded - %s",
|
template: SSRSettings.siteName + " - %s",
|
||||||
default: "Scoresaber Reloaded",
|
default: SSRSettings.siteName,
|
||||||
},
|
},
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "Scoresaber Reloaded",
|
title: SSRSettings.siteName,
|
||||||
description: "Aggregate your scores with other leaderboards together!",
|
description: "Aggregate your scores with other leaderboards together!",
|
||||||
url: "https://ssr.fascinated.cc",
|
url: SSRSettings.siteUrl,
|
||||||
locale: "en_US",
|
locale: "en_US",
|
||||||
type: "website",
|
type: "website",
|
||||||
},
|
},
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { SSRSettings } from "@/ssrSettings";
|
||||||
import { isProduction } from "@/utils/utils";
|
import { isProduction } from "@/utils/utils";
|
||||||
|
|
||||||
const buttons = [
|
const buttons = [
|
||||||
@ -21,7 +22,7 @@ export default function Footer() {
|
|||||||
className="transform-gpu transition-all hover:text-blue-500"
|
className="transform-gpu transition-all hover:text-blue-500"
|
||||||
href="https://git.fascinated.cc/Fascinated/scoresaber-reloaded-v2"
|
href="https://git.fascinated.cc/Fascinated/scoresaber-reloaded-v2"
|
||||||
>
|
>
|
||||||
Scoresaber Reloaded
|
{SSRSettings.siteName}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{buttons.map((button, index) => {
|
{buttons.map((button, index) => {
|
||||||
|
5
src/ssrSettings.ts
Normal file
5
src/ssrSettings.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export const SSRSettings = {
|
||||||
|
siteName: "Scoresaber Reloaded",
|
||||||
|
siteUrl: "https://ssr.fascinated.cc",
|
||||||
|
proxy: "https://proxy.fascinated.cc",
|
||||||
|
};
|
@ -1,5 +1,6 @@
|
|||||||
import { ScoresaberPlayer } from "@/schemas/scoresaber/player";
|
import { ScoresaberPlayer } from "@/schemas/scoresaber/player";
|
||||||
import { ScoresaberPlayerScore } from "@/schemas/scoresaber/playerScore";
|
import { ScoresaberPlayerScore } from "@/schemas/scoresaber/playerScore";
|
||||||
|
import { SSRSettings } from "@/ssrSettings";
|
||||||
import { FetchQueue } from "../fetchWithQueue";
|
import { FetchQueue } from "../fetchWithQueue";
|
||||||
import { formatString } from "../string";
|
import { formatString } from "../string";
|
||||||
|
|
||||||
@ -7,7 +8,7 @@ import { formatString } from "../string";
|
|||||||
const fetchQueue = new FetchQueue();
|
const fetchQueue = new FetchQueue();
|
||||||
|
|
||||||
// Api endpoints
|
// Api endpoints
|
||||||
const API_URL = "https://proxy.fascinated.cc/https://scoresaber.com/api";
|
const API_URL = SSRSettings.proxy + "/https://scoresaber.com/api";
|
||||||
const SEARCH_PLAYER_URL =
|
const SEARCH_PLAYER_URL =
|
||||||
API_URL + "/players?search={}&page=1&withMetadata=false";
|
API_URL + "/players?search={}&page=1&withMetadata=false";
|
||||||
const PLAYER_SCORES =
|
const PLAYER_SCORES =
|
||||||
|
Loading…
Reference in New Issue
Block a user