deskripsi:
- fix next.config.
- penambahan force-dynamic
- new route: src/app/api/user/id/
No Issuee
This commit is contained in:
2025-05-22 15:40:09 +08:00
parent 37fb25715e
commit 1d04b05fe7
5 changed files with 91 additions and 10 deletions

View File

@@ -4,6 +4,8 @@ import { Colab_GroupChatView } from "@/app_modules/colab";
import colab_getMessageByRoomId from "@/app_modules/colab/fun/get/room_chat/get_message_by_room_id";
import { user_getOneByUserId } from "@/app_modules/home/fun/get/get_one_user_by_id";
import _ from "lodash";
export const dynamic = "force-dynamic";
export default async function Page({ params }: { params: { id: string } }) {
const roomId = params.id;

View File

@@ -1,13 +1,13 @@
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
import { RealtimeProvider } from "../../lib";
import { ServerEnv } from "../../lib/server_env";
export const dynamic = "force-dynamic";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
const userId = await funGetUserIdByToken();
return (