Add icons to dev proxies (#3429)

This commit is contained in:
Matt Gibson 2022-09-07 10:36:05 -06:00 committed by GitHub
parent 607e86de9b
commit ae990019c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -209,6 +209,12 @@ const devServer =
secure: false,
changeOrigin: true,
},
"/icons": {
target: envConfig.dev?.proxyIcons,
pathRewrite: { "^/icons": "" },
secure: false,
changeOrigin: true,
},
},
headers: (req) => {
if (!req.originalUrl.includes("connector.html")) {