Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add readiness prove, correct test callback #1777

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading