1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.defaultDevtoolConfig = void 0;
|
4 | const constants_1 = require("./constants");
|
5 | const path = require("path");
|
6 | const devtool_frontend_1 = require("@testring/devtool-frontend");
|
7 | const getRouterPath = (filepath) => path.resolve(__dirname, './routes/', filepath);
|
8 | exports.defaultDevtoolConfig = {
|
9 | host: constants_1.DEFAULT_RECORDER_HOST,
|
10 | httpPort: constants_1.DEFAULT_RECORDER_HTTP_PORT,
|
11 | wsPort: constants_1.DEFAULT_RECORDER_WS_PORT,
|
12 | router: [
|
13 | {
|
14 | method: 'get',
|
15 | mask: '/',
|
16 | handler: getRouterPath('index-page'),
|
17 | },
|
18 | {
|
19 | method: 'get',
|
20 | mask: '/editor',
|
21 | handler: getRouterPath('editor-page'),
|
22 | },
|
23 | {
|
24 | method: 'get',
|
25 | mask: '/popup',
|
26 | handler: getRouterPath('popup-page'),
|
27 | },
|
28 | ],
|
29 | staticRoutes: {
|
30 | 'recorder-frontend': {
|
31 | 'rootPath': '/static',
|
32 | 'directory': devtool_frontend_1.absolutePath,
|
33 | },
|
34 | },
|
35 | };
|