update: Add dynamic configuration

This commit is contained in:
mbaharip
2025-01-24 17:43:50 +07:00
parent cd9aca123c
commit dc92a8af7d
2 changed files with 9 additions and 3 deletions
+7 -3
View File
@@ -4,13 +4,17 @@ import { encryptionService, gdrive } from "~/lib/utils.server";
import config from "config";
export const dynamic = "force-dynamic";
type Props = {
params: {
params: Promise<{
encryptedId: string;
};
}>;
};
export async function GET(request: NextRequest, { params: { encryptedId } }: Props) {
export async function GET(request: NextRequest, { params }: Props) {
const { encryptedId } = await params;
try {
const decryptedId = await encryptionService.decrypt(encryptedId);
const { data } = await gdrive.files.get({
+2
View File
@@ -6,6 +6,8 @@ import { encryptionService } from "~/lib/utils.server";
import config from "config";
export const dynamic = "force-dynamic";
type Props = {
params: Promise<{
encryptedId: string;