mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
fix:https routing and pr creation.
This commit is contained in:
parent
4ce1a51d8a
commit
96a9a05c79
8
.github/workflows/ecr-deploy.yaml
vendored
8
.github/workflows/ecr-deploy.yaml
vendored
@ -7,6 +7,12 @@ on:
|
||||
paths-ignore:
|
||||
- 'k8s/**'
|
||||
workflow_dispatch: # Allows manual triggering
|
||||
inputs:
|
||||
create_deployment_pr:
|
||||
description: 'Create PR for Kubernetes deployment update'
|
||||
required: false
|
||||
default: 'true'
|
||||
type: boolean
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@ -176,7 +182,7 @@ jobs:
|
||||
|
||||
# Create PR for Kubernetes manifests update (for main and dev branches)
|
||||
- name: Create PR for Kubernetes updates
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || (github.event_name == 'workflow_dispatch' && github.event.inputs.create_deployment_pr == 'true')
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
|
@ -78,7 +78,12 @@ export async function action({ request, context }: ActionFunctionArgs) {
|
||||
|
||||
// Get the callback URL
|
||||
const url = new URL(request.url);
|
||||
const callbackUrl = `${url.origin}/auth/callback`;
|
||||
|
||||
// In production with ingress/load balancer, force HTTPS for callback URL
|
||||
let callbackUrl = `${url.origin}/auth/callback`;
|
||||
if (url.hostname.includes('phexhub-np.int.bayer.com')) {
|
||||
callbackUrl = `https://${url.hostname}/auth/callback`;
|
||||
}
|
||||
|
||||
// Generate authorization URL
|
||||
const { url: authorizationUrl } = getAuthorizationUrl(state, callbackUrl, context);
|
||||
|
Loading…
Reference in New Issue
Block a user