Skip to content

Commit

Permalink
Merge pull request #1777 from carbon-design-system/fix/readiness-probe
Browse files Browse the repository at this point in the history
fix: add readiness prove, correct test callback
  • Loading branch information
jharvey10 authored Mar 1, 2024
2 parents 69a3038 + 44e385d commit d31a748
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/main/auth/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const OIDC_REDIRECT_URI = (() => {
if (runtime.runMode === RunMode.Dev) {
return 'https://localhost:8443/api/auth-callback'
} else if (runtime.environment === Environment.Test) {
return 'https://web-app.j73b4w218e4.us-south.codeengine.appdomain.cloud/api/auth-callback'
return 'https://next-test.carbondesignsystem.com/api/auth-callback'
}
return 'https://next.carbondesignsystem.com/api/auth-callback'
})()
Expand Down
14 changes: 14 additions & 0 deletions services/web-app/pages/api/readiness.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright IBM Corp. 2022, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import nextConnect from 'next-connect'

const readiness = nextConnect().get((_, res) => {
res.status(204).end()
})

export default readiness

0 comments on commit d31a748

Please sign in to comment.