Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix proxyrc require from path #9069

Merged
merged 1 commit into from
Jun 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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