Skip to content

Commit

Permalink
bugfix: Used the join() method to join folder paths, independently of…
Browse files Browse the repository at this point in the history
… the operating system
  • Loading branch information
ijlee2 committed Oct 18, 2023
1 parent 2a024fc commit a0e7a44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ember-cli-mirage/config/environment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

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

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

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

try {
fs.lstatSync(proxiesDir);
Expand Down

0 comments on commit a0e7a44

Please sign in to comment.