Skip to content

Commit

Permalink
Fix proxyrc require from path (#9069)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic authored Jun 6, 2023
1 parent 0645f64 commit 1d20769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/reporters/dev-server/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export default class Server {
*/
async applyProxyTable(app: any): Promise<Server> {
// avoid skipping project root
const fileInRoot: string = path.join(this.options.projectRoot, '_');
const fileInRoot: string = path.join(this.options.projectRoot, 'index');

const configFilePath = await resolveConfig(
this.options.inputFS,
Expand Down Expand Up @@ -434,7 +434,7 @@ export default class Server {
// let cfg = (await import(configFilePath)).default;
let cfg = await this.options.packageManager.require(
configFilePath,
this.options.projectRoot,
fileInRoot,
);
if (
// $FlowFixMe
Expand Down

0 comments on commit 1d20769

Please sign in to comment.