Remove access-graph path resolution, proxy /enterprise requests (#46541)

* Remove `access-graph` path from tsconfig

* Proxy /enterprise requested in dev
This commit is contained in:
Ryan Clark 2024-09-18 20:27:48 +02:00 committed by GitHub
parent b6b4c7a498
commit 994a47344d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -30,7 +30,6 @@
"e-teleport/*": ["e/web/teleport/src/*"],
"gen-proto-js/*": ["gen/proto/js/*"],
"gen-proto-ts/*": ["gen/proto/ts/*"],
"access-graph": ["e/web/teleport/src/AccessGraph/Loader.tsx"],
}
},
"include": [

View file

@ -162,6 +162,11 @@ export function createViteConfig(
changeOrigin: true,
secure: false,
},
'/enterprise': {
target: `https://${target}`,
changeOrigin: true,
secure: false,
},
};
if (process.env.VITE_HTTPS_KEY && process.env.VITE_HTTPS_CERT) {
config.server.https = {