Skip to content

Commit ae4e798

Browse files
committed
Cleanup unused path mapping.
1 parent 3ec7a34 commit ae4e798

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/pipelineClientServer.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ function startExpressServer() {
3333

3434
debug(`preparing http://${hostname}:${Configuration.port}/`);
3535

36-
const rootPath = path.resolve(path.join(__dirname, "..", "public"));
37-
3836
let app = null;
3937

4038
if (process.env.NODE_ENV !== "production") {
@@ -46,6 +44,8 @@ function startExpressServer() {
4644

4745
startSocketIOServer();
4846
} else {
47+
const rootPath = path.resolve(path.join(__dirname, "public"));
48+
4949
app = express();
5050

5151
app.use(express.static(rootPath));
@@ -54,7 +54,7 @@ function startExpressServer() {
5454

5555
app.use("/thumbnail", proxy(apiUri + "/thumbnail"));
5656

57-
app.use("/thumbnailData", proxy(apiUri + "/thumbnailData"));
57+
// app.use("/thumbnailData", proxy(apiUri + "/thumbnailData"));
5858

5959
app.use(`${Configuration.internalApiBase}serverConfiguration`, serverConfiguration);
6060

@@ -127,9 +127,9 @@ function devServer() {
127127
"/thumbnail": {
128128
target: apiUri
129129
},
130-
"/thumbnailData": {
131-
target: apiUri
132-
}
130+
// "/thumbnailData": {
131+
// target: apiUri
132+
// }
133133
},
134134
contentBase: path.resolve(path.join(__dirname, "..", "public")),
135135
disableHostCheck: true,

0 commit comments

Comments
 (0)