UNPKG

1.08 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.defaultDevtoolConfig = void 0;
4const constants_1 = require("./constants");
5const path = require("path");
6const devtool_frontend_1 = require("@testring/devtool-frontend");
7const getRouterPath = (filepath) => path.resolve(__dirname, './routes/', filepath);
8exports.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};