Skip to content

Commit 872cec9

Browse files
authored
Merge pull request #2562 from ijlee2/patch-2559-for-windows
Patch #2559 for Windows
2 parents 0b6bca9 + 7a04eb0 commit 872cec9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/ember-cli-mirage/config/environment.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
2+
23
const fs = require('fs');
4+
const path = require('path');
35

46
function usingProxy() {
57
const usingProxyArg = !!process.argv.filter(function (arg) {
@@ -11,7 +13,8 @@ function usingProxy() {
1113
}).length;
1214

1315
let hasGeneratedProxies = false;
14-
const proxiesDir = `${process.env.PWD}/server/proxies`;
16+
const proxiesDir = path.join(process.cwd(), 'server', 'proxies');
17+
1518
try {
1619
fs.lstatSync(proxiesDir);
1720
hasGeneratedProxies = true;

0 commit comments

Comments
 (0)