We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1192829 + effedd4 commit bfe42b2Copy full SHA for bfe42b2
1 file changed
packages/ember-cli-mirage/config/environment.js
@@ -1,5 +1,7 @@
1
'use strict';
2
+
3
const fs = require('fs');
4
+const path = require('path');
5
6
function usingProxy() {
7
const usingProxyArg = !!process.argv.filter(function (arg) {
@@ -11,7 +13,8 @@ function usingProxy() {
11
13
}).length;
12
14
15
let hasGeneratedProxies = false;
- const proxiesDir = `${process.env.PWD}/server/proxies`;
16
+ const proxiesDir = path.join(process.cwd(), 'server', 'proxies');
17
18
try {
19
fs.lstatSync(proxiesDir);
20
hasGeneratedProxies = true;
0 commit comments