diff --git a/apps/v-next/auth.ts b/apps/v-next/auth.ts index 530a911..c31274f 100644 --- a/apps/v-next/auth.ts +++ b/apps/v-next/auth.ts @@ -30,7 +30,8 @@ const authInstance = NextAuth({ return session; } }, - trustHost: true + trustHost: true, + secret: process.env.AUTH_SECRET }); export const { handlers, signIn, signOut, auth } = authInstance; diff --git a/apps/v-next/components/SocialMediaShare.tsx b/apps/v-next/components/SocialMediaShare.tsx index 2c8bdb9..f08066a 100644 --- a/apps/v-next/components/SocialMediaShare.tsx +++ b/apps/v-next/components/SocialMediaShare.tsx @@ -15,10 +15,11 @@ import { } from 'next-share'; import { WeiboIcon, WeiboShareButton } from 'next-share'; +import { useState } from 'react'; export default function SocialMediaShare() { const title = `${PROJECT.name} - ${PROJECT.description}`; - const url = `https://${location.hostname}`; + const [url] = useState(`https://${globalThis?.location?.hostname}`); return (
@@ -44,12 +45,7 @@ export default function SocialMediaShare() { - +
diff --git a/apps/v-next/src/app/page.tsx b/apps/v-next/src/app/page.tsx index 0a88383..5023a43 100644 --- a/apps/v-next/src/app/page.tsx +++ b/apps/v-next/src/app/page.tsx @@ -23,7 +23,7 @@ export default function Home() {
-

+

Delete & Archive Github Repo