fix kode
deskripsi: - fix next.config. - penambahan force-dynamic - new route: src/app/api/user/id/ No Issuee
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user