diff --git a/ui/pwa-helper/src/config.ts b/ui/pwa-helper/src/config.ts index e48b8a2c7..7622b8c78 100644 --- a/ui/pwa-helper/src/config.ts +++ b/ui/pwa-helper/src/config.ts @@ -1,6 +1,8 @@ +import type {StringifyableRecord} from '@alwatr/type'; + declare global { // eslint-disable-next-line no-var - var appConfig: Record | undefined; + var appConfig: StringifyableRecord; } // TODO: config-context with dynamic import like l18r diff --git a/uniquely/com-api/src/lib/config.ts b/uniquely/com-api/src/lib/config.ts index 5b493f624..fe22d052c 100644 --- a/uniquely/com-api/src/lib/config.ts +++ b/uniquely/com-api/src/lib/config.ts @@ -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: { diff --git a/uniquely/soffit-pwa/res/config.js b/uniquely/soffit-pwa/res/config.js index e130c8c21..9119543a7 100644 --- a/uniquely/soffit-pwa/res/config.js +++ b/uniquely/soffit-pwa/res/config.js @@ -1,4 +1,4 @@ window.appConfig = { api: '/api/v0', - token: '4d8468355882232d116254446165063fe9db87e3fa33d0f2ee9d9da88930f3ed', + token: '8aa2d2321e0969f0c4865fac2bd48c56fcbbe4e3fb9d491cf13dcdf497ee4499', };