Compare commits

...

1 Commits

Author SHA1 Message Date
ONLY-yours 98854e30c6 fix: change the process.env to appEnv to get 2026-03-30 21:05:23 +08:00
@@ -1,6 +1,8 @@
import { getLobehubSkillProviderById } from '@lobechat/const';
import type { BuiltinServerRuntimeOutput } from '@lobechat/types';
import { appEnv } from '@/envs/app';
import type {
GetPlaintextCredParams,
InitiateOAuthConnectParams,
@@ -142,7 +144,7 @@ export class CredsExecutionRuntime {
// Get the authorization URL
// Note: In background execution, we cannot use window.location.origin
// Normalize APP_URL by removing trailing slash to avoid double-slash in redirectUri
const appUrl = (process.env.APP_URL || 'https://app.lobehub.com').replace(/\/+$/, '');
const appUrl = (appEnv.APP_URL || 'https://app.lobehub.com').replace(/\/+$/, '');
const redirectUri = `${appUrl}/oauth/callback/success?provider=${provider}`;
const response = await this.credsService.getOAuthAuthorizeUrl(provider, redirectUri);