Skip to content

Commit

Permalink
Merge pull request #2562 from ijlee2/patch-2559-for-windows
Browse files Browse the repository at this point in the history
Patch #2559 for Windows
  • Loading branch information
SergeAstapov committed Oct 18, 2023
2 parents 0b6bca9 + 7a04eb0 commit 872cec9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ember-cli-mirage/config/environment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

const fs = require('fs');
const path = require('path');

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

let hasGeneratedProxies = false;
const proxiesDir = `${process.env.PWD}/server/proxies`;
const proxiesDir = path.join(process.cwd(), 'server', 'proxies');

try {
fs.lstatSync(proxiesDir);
hasGeneratedProxies = true;
Expand Down

0 comments on commit 872cec9

Please sign in to comment.