Skip to content

Commit b6a5507

Browse files
committed
static without path.join
1 parent a94f65b commit b6a5507

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/renderer/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import express from 'express';
77
import cookieParser from 'cookie-parser';
88
import compression from 'compression';
99
import logger from 'morgan';
10-
import { join } from 'path';
1110

1211
import { log } from './helpers';
1312
import { generateRoute } from './generateRoute';
@@ -72,7 +71,7 @@ const reconciler = ReactReconciler({
7271
if (type === 'static') {
7372
return {
7473
path: props.path,
75-
static: express.static(join(__dirname, props.publicPath), props.options),
74+
static: express.static(props.publicPath, props.options),
7675
};
7776
}
7877

0 commit comments

Comments
 (0)