File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ LangGraph Server 只需要 harness 包。`langgraph.json` 更新:
277277 "lead_agent" : " deerflow.agents:make_lead_agent"
278278 },
279279 "checkpointer" : {
280- "path" : " ./packages/harness/deerflow/agents /checkpointer/async_provider.py:make_checkpointer"
280+ "path" : " ./packages/harness/deerflow/runtime /checkpointer/async_provider.py:make_checkpointer"
281281 }
282282}
283283```
Original file line number Diff line number Diff line change 1212 "path" : " ./app/gateway/langgraph_auth.py:auth"
1313 },
1414 "checkpointer" : {
15- "path" : " ./packages/harness/deerflow/agents /checkpointer/async_provider.py:make_checkpointer"
15+ "path" : " ./packages/harness/deerflow/runtime /checkpointer/async_provider.py:make_checkpointer"
1616 }
1717}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export default defineConfig({
2828 timeout : 120_000 ,
2929 env : {
3030 SKIP_ENV_VALIDATION : "1" ,
31+ DEER_FLOW_AUTH_DISABLED : "1" ,
3132 } ,
3233 } ,
3334} ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,18 @@ const SSR_AUTH_TIMEOUT_MS = 5_000;
1010 * Returns a tagged AuthResult — callers use exhaustive switch, no try/catch.
1111 */
1212export async function getServerSideUser ( ) : Promise < AuthResult > {
13+ if ( process . env . DEER_FLOW_AUTH_DISABLED === "1" ) {
14+ return {
15+ tag : "authenticated" ,
16+ user : {
17+ id : "e2e-user" ,
18+ email : "e2e@test.local" ,
19+ system_role : "admin" ,
20+ needs_setup : false ,
21+ } ,
22+ } ;
23+ }
24+
1325 const cookieStore = await cookies ( ) ;
1426 const sessionCookie = cookieStore . get ( "access_token" ) ;
1527
You can’t perform that action at this time.
0 commit comments