Skip to content

Commit a3dfa30

Browse files
committed
Merge main into refactor branch
- Resolved conflicts in API routes by combining runtime exports with imports - Updated package-lock.json to reflect Next.js 15.4.0-canary.116 - All API routes now properly export runtime='nodejs' while maintaining functionality
2 parents 1ee2b16 + 893cf90 commit a3dfa30

File tree

11 files changed

+152
-2867
lines changed

11 files changed

+152
-2867
lines changed

next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const nextConfig: NextConfig = {
3838
"framer-motion",
3939
"@tanstack/react-virtual",
4040
],
41+
nodeMiddleware: true,
4142
// Server Actions optimization for Google Drive API
4243
serverActions: {
4344
allowedOrigins: ["localhost:3000", process.env.VERCEL_URL || ""],

package-lock.json

Lines changed: 138 additions & 2866 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"googleapis": "^150.0.1",
6565
"input-otp": "^1.4.2",
6666
"lucide-react": "^0.525.0",
67-
"next": "^15.3.5",
67+
"next": "^15.4.0-canary.116",
6868
"next-themes": "^0.4.6",
6969
"nextjs-toploader": "^3.8.16",
7070
"react-day-picker": "^9.8.0",

src/app/api/download/[...rest]/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import config from "@/config/gIndex.config";
66

77
import { encryptionService, gdrive } from "@/lib/utils.server";
88

9+
export const runtime = "nodejs";
910
export const dynamic = "force-static";
1011

1112
export async function GET(

src/app/api/internal/check/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import config from "@/config/gIndex.config";
44

55
import { encryptionService } from "@/lib/utils.server";
66

7+
export const runtime = "nodejs";
78
export const dynamic = "force-dynamic";
89

910
export async function GET() {

src/app/api/internal/encrypt/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { type NextRequest, NextResponse } from "next/server";
22

33
import { encryptionService } from "@/lib/utils.server";
44

5+
export const runtime = "nodejs";
6+
57
export const dynamic = "force-dynamic";
68

79
export async function GET(request: NextRequest) {

src/app/api/internal/storage/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { NextResponse } from "next/server";
22

33
import { GetStorageInfo } from "@/actions/files";
44

5+
export const runtime = "nodejs";
6+
57
export async function GET() {
68
try {
79
const result = await GetStorageInfo();

src/app/api/og/[encryptedId]/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import config from "@/config/gIndex.config";
44

55
import { encryptionService, gdrive } from "@/lib/utils.server";
66

7+
export const runtime = "nodejs";
78
export const dynamic = "force-static";
89

910
type Props = {

src/app/api/raw/[...rest]/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ValidatePaths } from "@/actions/paths";
55

66
import { encryptionService } from "@/lib/utils.server";
77

8+
export const runtime = "nodejs";
89
export const dynamic = "force-static";
910

1011
export async function GET(

src/app/api/thumb/[encryptedId]/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { z } from "zod";
66

77
import { encryptionService } from "@/lib/utils.server";
88

9+
export const runtime = "nodejs";
10+
911
export const dynamic = "force-dynamic";
1012

1113
type Props = {

0 commit comments

Comments
 (0)