Skip to content

Commit

Permalink
fix: remove debug settings
Browse files Browse the repository at this point in the history
  • Loading branch information
z0gSh1u committed Aug 28, 2024
1 parent ef4b9db commit c2a58b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions packages/secretnote-lite/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"name": "@alipay/secretnote-lite",
"version": "0.0.35",
"version": "0.0.38",
"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",
Expand Down Expand Up @@ -83,4 +81,4 @@
"publishConfig": {
"registry": "https://registry.antgroup-inc.cn"
}
}
}
3 changes: 1 addition & 2 deletions packages/secretnote-lite/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c2a58b6

Please sign in to comment.