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 fe00d20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 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.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",
Expand Down
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 fe00d20

Please sign in to comment.