finish for deploy

This commit is contained in:
2024-08-14 14:24:45 +02:00
parent 95170194af
commit 8d9607dbc6
3 changed files with 11 additions and 8 deletions

View File

@@ -18,8 +18,8 @@ if ( typeof( __dirname ) === 'undefined' ) {
}
// TODO: Change config file, as well as in main.ts, index.html, oauth, if deploying there
const sdkConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.testing.json' ) ) );
// const sdkConfig: AuthSDKConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.secret.json' ) ) );
// const sdkConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.testing.json' ) ) );
const sdkConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.secret.json' ) ) );
const run = () => {
let app = express();
@@ -27,11 +27,8 @@ const run = () => {
credentials: true,
origin: true
} ) );
storeSDK.configure( {
backendURL: 'http://localhost:8083',
name: 'testing',
signingSecret: 'test',
} );
// storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.testing.json' ) ) ) );
storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.secret.json' ) ) ) );
const httpServer = createServer( app );