Skip to content

Commit 1d20769

Browse files
authored
Fix proxyrc require from path (#9069)
1 parent 0645f64 commit 1d20769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/reporters/dev-server/src/Server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export default class Server {
404404
*/
405405
async applyProxyTable(app: any): Promise<Server> {
406406
// avoid skipping project root
407-
const fileInRoot: string = path.join(this.options.projectRoot, '_');
407+
const fileInRoot: string = path.join(this.options.projectRoot, 'index');
408408

409409
const configFilePath = await resolveConfig(
410410
this.options.inputFS,
@@ -434,7 +434,7 @@ export default class Server {
434434
// let cfg = (await import(configFilePath)).default;
435435
let cfg = await this.options.packageManager.require(
436436
configFilePath,
437-
this.options.projectRoot,
437+
fileInRoot,
438438
);
439439
if (
440440
// $FlowFixMe

0 commit comments

Comments
 (0)