We think the issue is related to config/environment.js#L14, due to process.env.PWD and the hardcoded /'s.
After replacing process.env.PWD with process.cwd() and / with path.join(), we checked that we can run the server on both Windows and Mac. On Mac, I saw the same value logged for (1), (2), and (3):
Note, a StackOverflow answer suggests that process.env.PWD and process.cwd() can have a different meaning (value) when the current directory is changed. I'm not sure if that difference would affect ember-cli-mirage.
Description
As mentioned in https://github.com/miragejs/ember-cli-mirage/issues/2558#issuecomment-1767991362, on Windows, my team member @Ajanth wasn't able to run the desired server even after I updated
ember-cli-mirage
tov3.0.1
(see #2559).We think the issue is related to
config/environment.js#L14
, due toprocess.env.PWD
and the hardcoded/
's.After replacing
process.env.PWD
withprocess.cwd()
and/
withpath.join()
, we checked that we can run the server on both Windows and Mac. On Mac, I saw the same value logged for (1), (2), and (3):Note, a StackOverflow answer suggests that
process.env.PWD
andprocess.cwd()
can have a different meaning (value) when the current directory is changed. I'm not sure if that difference would affectember-cli-mirage
.