Skip to content

Commit 22e6f46

Browse files
authored
Merge pull request #227 from timcui/dev
fix(config): use resolve support absolute path & fix require
2 parents b9b3f5d + 88f35c4 commit 22e6f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/proxy/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (global[__filename]) {
2727
}
2828

2929
if (typeof processArgs.config === 'string') {
30-
cache.config = path.join(cwd, processArgs.config);
30+
cache.config = require(path.resolve(cwd, processArgs.config));
3131
} else if (fs.existsSync(currConfig)) {
3232
cache.config = require(currConfig);
3333
} else if (fs.existsSync('/etc/tsw.config.js')) {

0 commit comments

Comments
 (0)