Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

# Stage changes made by Prettier
echo "📂 Staging formatting changes..."
git add .
git add -u

# Ensure there are staged changes before proceeding
if git diff --cached --quiet; then
Expand Down
9 changes: 9 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@ module.exports = {
singleQuote: false,
tabWidth: 2,
plugins: ["prettier-plugin-tailwindcss"],
overrides: [
{
files: ["*.json", "*.jsonc", "wrangler.jsonc"],
options: {
trailingComma: "none",
singleQuote: false,
},
},
],
};
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"prettier.requireConfig": true
}
2 changes: 0 additions & 2 deletions app/(main)/download/[platform]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DownloadHero } from "@/components/sections/download/DownloadHero";
import { DownloadThreeSteps } from "@/components/sections/download/DownloadThreeSteps";
import { DownloadSupportedPlatform } from "@/components/sections/download/DownloadSupportedPlatform";
Comment on lines 1 to 2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The DownloadThreeSteps component at components/sections/download/DownloadThreeSteps.tsx is now unused. Consider deleting the component file and its related ThreeStepsItem dependency if not used elsewhere.

Prompt To Fix With AI
This is a comment left during a code review.
Path: app/(main)/download/[platform]/page.tsx
Line: 1:2

Comment:
**style:** The `DownloadThreeSteps` component at `components/sections/download/DownloadThreeSteps.tsx` is now unused. Consider deleting the component file and its related `ThreeStepsItem` dependency if not used elsewhere.

How can I resolve this? If you propose a fix, please make it concise.

import { DownloadInformation } from "@/components/sections/download/DownloadInformation";
import { Metadata } from "next";
Expand Down Expand Up @@ -31,7 +30,6 @@ export default async function DownloadPlatform({
return (
<div>
<DownloadHero platform={platform} />
<DownloadThreeSteps />
<DownloadSupportedPlatform />
<DownloadInformation />
<CTA
Expand Down
2 changes: 1 addition & 1 deletion app/api/download/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const GITHUB_OWNER = "Redot-Engine";
const GITHUB_REPO = "redot-engine";

export const runtime = "edge";
export const runtime = "nodejs";

function getAssetPattern(
platform: string,
Expand All @@ -28,9 +28,9 @@
"64": "win64",
arm64: "windows_arm64",
}[arch]!;
return new RegExp(`_mono_${winPart}\\.zip$`, "i");

Check warning on line 31 in app/api/download/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=Redot-Engine_redot-website&issues=AZqtcUI62M1tEHgWdT8Z&open=AZqtcUI62M1tEHgWdT8Z&pullRequest=267
}
return new RegExp(`_mono_${platform}_${arch}\\.zip$`, "i");

Check warning on line 33 in app/api/download/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=Redot-Engine_redot-website&issues=AZqtcUI62M1tEHgWdT8a&open=AZqtcUI62M1tEHgWdT8a&pullRequest=267
}

if (platform === "windows") {
Expand All @@ -39,10 +39,10 @@
"64": "win64",
arm64: "windows_arm64",
}[arch]!;
return new RegExp(`_${winPart}\\.exe\\.zip$`, "i");

Check warning on line 42 in app/api/download/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=Redot-Engine_redot-website&issues=AZqtcUI62M1tEHgWdT8b&open=AZqtcUI62M1tEHgWdT8b&pullRequest=267
}

return new RegExp(`_${platform}\\.${arch}\\.zip$`, "i");

Check warning on line 45 in app/api/download/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=Redot-Engine_redot-website&issues=AZqtcUI62M1tEHgWdT8c&open=AZqtcUI62M1tEHgWdT8c&pullRequest=267
}

async function findAssetInReleases(
Expand Down
2 changes: 1 addition & 1 deletion app/api/feed.xml/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NextResponse } from "next/server";
import { getPosts } from "@/lib/blog";

export const runtime = "edge";
export const runtime = "nodejs";

export async function GET() {
const posts = await getPosts();
Expand Down
2 changes: 1 addition & 1 deletion app/api/mirrorlists/[mirrorlist]/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextRequest, NextResponse } from "next/server";

export const runtime = "edge";
export const runtime = "nodejs";

export async function GET(
req: NextRequest,
Expand Down Expand Up @@ -36,8 +36,8 @@
const statusVersion = match[7] ? `.${match[7]}` : "";
const monoTag = match[8] ? "_mono" : "";

const downloadPathVersion = `${major}.${minor}${patch !== "0" ? `.${patch}` : ""}-${status}${statusVersion}`;

Check warning on line 39 in app/api/mirrorlists/[mirrorlist]/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=Redot-Engine_redot-website&issues=AZqtcUGo2M1tEHgWdT8X&open=AZqtcUGo2M1tEHgWdT8X&pullRequest=267
const templateVersion = `${major}.${minor}${patch !== "0" ? `.${patch}` : ""}-${status}${statusVersion}${monoTag}`;

Check warning on line 40 in app/api/mirrorlists/[mirrorlist]/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=Redot-Engine_redot-website&issues=AZqtcUGo2M1tEHgWdT8Y&open=AZqtcUGo2M1tEHgWdT8Y&pullRequest=267

console.log("downloadPathVersion:", downloadPathVersion);
console.log("templateVersion:", templateVersion);
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { GoogleTagManager } from "@next/third-parties/google";
import { NextIntlClientProvider } from "next-intl";
import { getLocale, getMessages } from "next-intl/server";

export const runtime = "edge";
export const runtime = "nodejs";

const inter = Inter({
subsets: ["latin"],
Expand Down
2 changes: 1 addition & 1 deletion app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { links } from "@/constants/links";
import { useRouter } from "next/navigation";
import { SectionLink } from "@/components/SectionLink";

export const runtime = "edge";
export const runtime = "nodejs";

export default function NotFound() {
const router = useRouter();
Expand Down
122 changes: 91 additions & 31 deletions bun.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ const nextConfig: NextConfig = {
destination: "/blog/:slug",
permanent: true,
},
{
source: "/donate",
destination: "https://ko-fi.com/redotengine",
permanent: true,
},
];
},
experimental: {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
"format": "prettier -c --cache .",
"format:fix": "prettier -w . --cache",
"prepare": "husky",
"cfbuild": "opennextjs-cloudflare build",
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
"deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",
"upload": "opennextjs-cloudflare build && opennextjs-cloudflare upload",
"cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts"
},
"dependencies": {
"@next/third-parties": "15.1.3",
"@opennextjs/cloudflare": "^1.3.1",
"@opennextjs/cloudflare": "^1.8.0",
"@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-avatar": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.4",
Expand Down Expand Up @@ -85,6 +86,6 @@
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"wrangler": "^4.22.0"
"wrangler": "^4.34.0"
}
}
12 changes: 6 additions & 6 deletions wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS",
"binding": "ASSETS"
},
"services": [
{
"binding": "WORKER_SELF_REFERENCE",
"service": "main-website",
},
"service": "main-website"
}
],
"r2_buckets": [
{
"binding": "NEXT_INC_CACHE_R2_BUCKET",
"bucket_name": "cache",
},
],
"bucket_name": "cache"
}
]
}