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

@@ -9,6 +9,7 @@ const app = createApp(App)
app.use(createPinia()) app.use(createPinia())
app.use(router) app.use(router)
localStorage.setItem( 'url', 'http://localhost:8082' ); // localStorage.setItem( 'url', 'http://localhost:8082' );
localStorage.setItem( 'url', 'https://music-api.janishutz.com' );
app.mount('#app') app.mount('#app')

View File

@@ -0,0 +1,5 @@
{
"backendURL": "http://localhost:8083",
"name": "testing",
"signingSecret": "test"
}

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 // 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 = 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.secret.json' ) ) );
const run = () => { const run = () => {
let app = express(); let app = express();
@@ -27,11 +27,8 @@ const run = () => {
credentials: true, credentials: true,
origin: true origin: true
} ) ); } ) );
storeSDK.configure( { // storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.testing.json' ) ) ) );
backendURL: 'http://localhost:8083', storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.secret.json' ) ) ) );
name: 'testing',
signingSecret: 'test',
} );
const httpServer = createServer( app ); const httpServer = createServer( app );