Skip to content

Commit

Permalink
Update copilot basePath to be underscoreless (#13104)
Browse files Browse the repository at this point in the history
* Update copilot basePath to be underscoreless

- There are some concerns about having an underscore in the path so
  we're removing it for now.

* A URL for the future..
  • Loading branch information
foot authored Oct 11, 2024
1 parent a072339 commit ba5deac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions infrastructure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ const distributionArgs: aws.cloudfront.DistributionArgs = {
"GET", "HEAD", "OPTIONS",
],
targetOriginId: cloudAiAppDomain,
pathPattern: '/_pulumi/cloud-ai',
pathPattern: '/pulumi-ai/copilot',
originRequestPolicyId: allViewerExceptHostHeaderId,
cachePolicyId: cachingDisabledId,
lambdaFunctionAssociations: [],
Expand All @@ -626,7 +626,7 @@ const distributionArgs: aws.cloudfront.DistributionArgs = {
"GET", "HEAD", "OPTIONS",
],
targetOriginId: cloudAiAppDomain,
pathPattern: '/_pulumi/cloud-ai/*',
pathPattern: '/pulumi-ai/copilot/*',
originRequestPolicyId: allViewerExceptHostHeaderId,
cachePolicyId: cachingDisabledId,
lambdaFunctionAssociations: [],
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/copilot/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ $copilotApiUrl := getenv "PULUMI_COPILOT_URL" }}
{{ if $copilotApiUrl }}
{{ $copilotBasePath := or (getenv "DEV_PULUMI_COPILOT_BASE_PATH") "/_pulumi/cloud-ai" }}
{{ $copilotBasePath := or (getenv "DEV_PULUMI_COPILOT_BASE_PATH") "/pulumi-ai/copilot" }}
<copilot-sidebar copilot-src="{{ $copilotBasePath }}/sidebar?hostApp=docs&apiHost={{ $copilotApiUrl | urlquery }}"></copilot-sidebar>
{{ end }}

0 comments on commit ba5deac

Please sign in to comment.