Skip to content

Commit

Permalink
chore: remove staing environment configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikari-Shinji-re committed Nov 27, 2024
1 parent 25f4b7a commit 3730062
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion widget/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"browserslist": "> 0.5%, last 2 versions, not dead",
"scripts": {
"dev": "parcel -p 3000 --cache-dir=.parcel-cache --no-cache",
"dev": "parcel -p 3002 --cache-dir=.parcel-cache --no-cache",
"build": "parcel build --cache-dir=.parcel-cache",
"ts-check": "tsc --declaration --emitDeclarationOnly -p ./tsconfig.json",
"clean": "rimraf .parcel-cache && rimraf dist",
Expand Down
3 changes: 1 addition & 2 deletions widget/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export function App() {
*/

config = {
apiUrl: 'https://api-01.rng-dev.online',
apiKey: '4a624ab5-16ff-4f96-90b7-ab00ddfc342c',
apiKey: '',
walletConnectProjectId: WC_PROJECT_ID,
trezorManifest: TREZOR_MANIFEST,
tonConnect: { manifestUrl: TON_CONNECT_MANIFEST_URL },
Expand Down
2 changes: 1 addition & 1 deletion widget/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"browserslist": "> 0.5%, last 2 versions, not dead",
"scripts": {
"dev": "parcel -p 3000 --cache-dir=.parcel-cache --no-cache",
"dev": "parcel -p 3005 --cache-dir=.parcel-cache --no-cache",
"build": "parcel build --cache-dir=.parcel-cache",
"ts-check": "tsc --declaration --emitDeclarationOnly -p ./tsconfig.json",
"clean": "rimraf .parcel-cache && rimraf dist",
Expand Down
5 changes: 2 additions & 3 deletions widget/playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ConfigContainer } from './containers/configContainer';
import { useTheme } from './hooks/useTheme';
import { initialConfig, useConfigStore } from './store/config';
import { useMetaStore } from './store/meta';
// import { RANGO_PUBLIC_API_KEY } from './utils/configs';
import { RANGO_PUBLIC_API_KEY } from './utils/configs';
import { filterConfig } from './utils/export';

export function App() {
Expand All @@ -23,8 +23,7 @@ export function App() {
theme: {},
...config,
...filteredConfigForExport,
apiUrl: 'https://api-01.rng-dev.online',
apiKey: '4a624ab5-16ff-4f96-90b7-ab00ddfc342c',
apiKey: RANGO_PUBLIC_API_KEY,
features: {
theme: 'hidden',
},
Expand Down
7 changes: 3 additions & 4 deletions widget/playground/src/services/httpService.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { RangoClient } from 'rango-sdk';

import { getConfig } from '../utils/configs';

let rangoClient: RangoClient | undefined = undefined;

export const rango = () => {
if (rangoClient) {
return rangoClient;
}
rangoClient = new RangoClient(
'4a624ab5-16ff-4f96-90b7-ab00ddfc342c',
'https://api-01.rng-dev.online'
);
rangoClient = new RangoClient(getConfig('API_KEY'));
return rangoClient;
};

0 comments on commit 3730062

Please sign in to comment.