Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { log, WebHost } from '@microsoft/mixed-reality-extension-sdk';
import dotenv from 'dotenv';
import { resolve as resolvePath } from 'path';
import App from './app';
// Read .env if file exists
dotenv.config();
process.on('uncaughtException', err => console.log('uncaughtException', err));
process.on('unhandledRejection', reason => console.log('unhandledRejection', reason));
log.enable('app');
// Start listening for connections, and serve static files
const server = new WebHost({
// baseUrl: 'http://.ngrok.io',
baseDir: resolvePath(__dirname, '../public')
});
// Handle new application sessions
server.adapter.onConnection(context => new App(context, server.baseUrl));
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { log, WebHost } from '@microsoft/mixed-reality-extension-sdk';
import dotenv from 'dotenv';
import { resolve as resolvePath } from 'path';
import App from './app';
// Read .env if file exists
dotenv.config();
process.on('uncaughtException', err => console.log('uncaughtException', err));
process.on('unhandledRejection', reason => console.log('unhandledRejection', reason));
log.enable('app');
// Start listening for connections, and serve static files
const server = new WebHost({
// baseUrl: 'http://.ngrok.io',
baseDir: resolvePath(__dirname, '../public')
});
// Handle new application sessions
server.adapter.onConnection(context => new App(context, server.baseUrl));
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { log, WebHost } from '@microsoft/mixed-reality-extension-sdk';
import dotenv from 'dotenv';
import { resolve as resolvePath } from 'path';
import App from './app';
// Read .env if file exists
dotenv.config();
process.on('uncaughtException', err => console.log('uncaughtException', err));
process.on('unhandledRejection', reason => console.log('unhandledRejection', reason));
log.enable('app');
// Start listening for connections, and serve static files
const server = new WebHost({
// baseUrl: 'http://.ngrok.io',
baseDir: resolvePath(__dirname, '../public')
});
// Handle new application sessions
server.adapter.onConnection(context => new App(context, server.baseUrl));