fix: add default empty strings to satisfy TypeScript
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 38s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 38s
This commit is contained in:
parent
7046b83e29
commit
deb5462061
@ -4,7 +4,7 @@ const fetch = require('node-fetch');
|
||||
const { SDKSignerClient } = require('sdk-signer-client');
|
||||
|
||||
// Quick test configuration
|
||||
const BASE_URL = process.env.API_BASE_URL;
|
||||
const BASE_URL = process.env.API_BASE_URL || "";
|
||||
const ENDPOINT = '/api/v1/idnot/user/rattachements'; // Base endpoint, idnot will be added as path parameter
|
||||
|
||||
const signerConfig = {
|
||||
|
@ -1,14 +1,13 @@
|
||||
import * as dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
export const config = {
|
||||
port: process.env.PORT,
|
||||
defaultStorage: process.env.DEFAULT_STORAGE,
|
||||
appHost: process.env.APP_HOST,
|
||||
|
||||
port: process.env.PORT || "",
|
||||
defaultStorage: process.env.DEFAULT_STORAGE || "",
|
||||
appHost: process.env.APP_HOST || "",
|
||||
|
||||
cors: {
|
||||
origin: process.env.APP_HOST,
|
||||
origin: process.env.APP_HOST || "",
|
||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||
allowedHeaders: ['Content-Type', 'x-session-id', 'Authorization'],
|
||||
credentials: true
|
||||
|
@ -1,5 +1,5 @@
|
||||
export const stripeConfig = {
|
||||
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
|
||||
STRIPE_WEBHOOK_SECRET: process.env.STRIPE_WEBHOOK_SECRET,
|
||||
APP_HOST: process.env.APP_HOST,
|
||||
APP_HOST: process.env.APP_HOST || "",
|
||||
};
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
const API_BASE = process.env.API_BASE_URL;
|
||||
const API_BASE = process.env.API_BASE_URL || "";
|
||||
const TEST_DURATION = 60000; // 1 minute test
|
||||
const CHECK_INTERVAL = 2000; // Check every 2 seconds
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user