diff --git a/packages/secretnote-lite/package.json b/packages/secretnote-lite/package.json index f38e4d7..399ed65 100644 --- a/packages/secretnote-lite/package.json +++ b/packages/secretnote-lite/package.json @@ -1,15 +1,13 @@ { "name": "@alipay/secretnote-lite", - "version": "0.0.35", + "version": "0.0.37", "license": "Apache-2.0", "author": "vectorse@126.com", "repository": "https://github.com/secretflow/secretnote/tree/main/packages/secretnote", "bugs": "https://github.com/secretflow/secretnote/issues", "files": [ - "*.less", - "*.js", - "*.d.ts", - "*.js.map" + "dist", + "src" ], "main": "index.js", "module": "index.js", diff --git a/packages/secretnote-lite/src/utils/request.ts b/packages/secretnote-lite/src/utils/request.ts index 882002e..bd29bd8 100644 --- a/packages/secretnote-lite/src/utils/request.ts +++ b/packages/secretnote-lite/src/utils/request.ts @@ -10,8 +10,7 @@ import { genericErrorHandler } from './error'; * Otherwise it goes to the default web server. */ export const getRemoteBaseUrl = (targetId = '', endSlash = false) => { - const SECRETNOTE_BACKEND_URL = 'http://127.0.0.1:8091'; // DEBUG ONLY - const backendUrl = process.env.SECRETNOTE_BACKEND_URL || SECRETNOTE_BACKEND_URL; + const backendUrl = process.env.PB_BACKEND_URL; const origin = !backendUrl || backendUrl === '/' ? window.location.origin : backendUrl;