Browse Source

fix: random

Carson 2 months ago
parent
commit
341f0d0845
2 changed files with 3 additions and 1 deletions
  1. 2 0
      app/api/auth/[...nextauth]/route.ts
  2. 1 1
      app/run-agent-flow/components/Header.tsx

+ 2 - 0
app/api/auth/[...nextauth]/route.ts

@@ -3,6 +3,8 @@ import CredentialsProvider from "next-auth/providers/credentials";
 import * as R from "ramda";
 
 const authOptions = {
+  // https://generate-secret.vercel.app/32
+  secret: process.env.SECRET,
   // Configure one or more authentication providers
   providers: [
     CredentialsProvider({

+ 1 - 1
app/run-agent-flow/components/Header.tsx

@@ -83,7 +83,7 @@ export default function Header() {
     <div className="navbar shrink-0 bg-base-100 shadow-xl rounded-box justify-center min-h-4 relative">
       <div className="dropdown">
         <div tabIndex={0} role="button" className="btn btn-sm btn-wide btn-ghost">选择对话<BsCaretDownFill /></div>
-        <ul tabIndex={0} className="dropdown-content menu bg-base-100 rounded-box z-[1] w-52 p-2 shadow">
+        <ul tabIndex={0} className="dropdown-content menu bg-base-100 rounded-box z-[2] w-52 p-2 shadow">
           <li><a>Item 1</a></li>
           <li><a>Item 2</a></li>
         </ul>