Skip to content

Commit

Permalink
Merge pull request miragejs#2562 from ijlee2/patch-2559-for-windows
Browse files Browse the repository at this point in the history
Patch miragejs#2559 for Windows
  • Loading branch information
SergeAstapov authored Oct 18, 2023
2 parents 1192829 + effedd4 commit bfe42b2
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 bfe42b2

Please sign in to comment.