Skip to content

Commit

Permalink
Remove access-graph path resolution, proxy /enterprise requests (#4…
Browse files Browse the repository at this point in the history
…6541)

* Remove `access-graph` path from tsconfig

* Proxy /enterprise requested in dev
  • Loading branch information
ryanclark authored Sep 18, 2024
1 parent b6b4c7a commit 994a473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
5 changes: 5 additions & 0 deletions web/packages/build/vite/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 994a473

Please sign in to comment.