Skip to content

Commit

Permalink
Merge pull request #40986 from Expensify/rocio-WebpackServer
Browse files Browse the repository at this point in the history
Update webpack-dev-server to fix vulnerabilities
  • Loading branch information
roryabraham authored Apr 27, 2024
2 parents 10fc359 + ef395d2 commit 4d372ae
Show file tree
Hide file tree
Showing 3 changed files with 415 additions and 138 deletions.
16 changes: 6 additions & 10 deletions config/webpack/webpack.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ const getConfiguration = (environment: Environment): Promise<Configuration> =>
process.env.USE_WEB_PROXY === 'false'
? {}
: {
proxy: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'/api': 'http://[::1]:9000',
// eslint-disable-next-line @typescript-eslint/naming-convention
'/staging': 'http://[::1]:9000',
// eslint-disable-next-line @typescript-eslint/naming-convention
'/chat-attachments': 'http://[::1]:9000',
// eslint-disable-next-line @typescript-eslint/naming-convention
'/receipts': 'http://[::1]:9000',
},
proxy: [
{
context: ['/api', '/staging', '/chat-attachments', '/receipts'],
target: 'http://[::1]:9000',
},
],
};

const baseConfig = getCommonConfiguration(environment);
Expand Down
Loading

0 comments on commit 4d372ae

Please sign in to comment.