Skip to content

Commit

Permalink
fix: configs
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Feb 10, 2023
1 parent 37831ee commit 00f85f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ui/pwa-helper/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type {StringifyableRecord} from '@alwatr/type';

declare global {
// eslint-disable-next-line no-var
var appConfig: Record<string, string | number | boolean | undefined> | undefined;
var appConfig: StringifyableRecord;
}

// TODO: config-context with dynamic import like l18r
Expand Down
6 changes: 3 additions & 3 deletions uniquely/com-api/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export const logger = createLogger('com-api');

export const config = {
storage: {
host: process.env.ORDER_STORAGE_HOST ?? '127.0.0.1',
port: process.env.ORDER_STORAGE_PORT != null ? +process.env.ORDER_STORAGE_PORT : 9000,
token: process.env.ORDER_STORAGE_TOKEN ?? 'YOUR_SECRET_TOKEN',
host: process.env.STORAGE_HOST ?? '127.0.0.1',
port: process.env.STORAGE_PORT != null ? +process.env.STORAGE_PORT : 9000,
token: process.env.STORAGE_TOKEN ?? 'YOUR_SECRET_TOKEN',
productStorageName: process.env.PRODUCT_STORAGE_NAME ?? 'product',
},
token: <TokenGeneratorConfig>{
Expand Down
2 changes: 1 addition & 1 deletion uniquely/soffit-pwa/res/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window.appConfig = {
api: '/api/v0',
token: '4d8468355882232d116254446165063fe9db87e3fa33d0f2ee9d9da88930f3ed',
token: '8aa2d2321e0969f0c4865fac2bd48c56fcbbe4e3fb9d491cf13dcdf497ee4499',
};

0 comments on commit 00f85f5

Please sign in to comment.