Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
bartosz-skejcik committed Dec 22, 2023
1 parent 72511c1 commit 0f83a78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions app/api/edgestore/[...edgestore]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const handler = createEdgeStoreNextHandler({
router: edgeStoreRouter,
});

export const dynamic = "force-dynamic";

export { handler as GET, handler as POST };

/**
Expand Down
7 changes: 1 addition & 6 deletions app/panel/settings/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { toast } from "react-toastify";
import { EdgeStoreProvider, useEdgeStore } from "@/lib/edgestore";
import clsx from "clsx";
import { Loader2 } from "lucide-react";
import dynamic from "next/dynamic";

async function handleUserChange(
e: FormData,
Expand Down Expand Up @@ -80,7 +79,7 @@ async function handleUserChange(

type Props = {};

function NoSSRAccount({}: Props) {
function Account({}: Props) {
const { edgestore } = useEdgeStore();
const { data: session } = useSession();
const userAvatar = session?.user?.avatar!;
Expand Down Expand Up @@ -353,8 +352,4 @@ function NoSSRAccount({}: Props) {
);
}

const Account = dynamic(() => Promise.resolve(NoSSRAccount), {
ssr: false,
});

export default Account;

0 comments on commit 0f83a78

Please sign in to comment.