This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
|
||||
// Audit delivery reads the root deployment credentials through an internal action.
|
||||
import { v } from "convex/values"
|
||||
import { internalAction } from "./_generated/server"
|
||||
|
||||
export const get = internalAction({
|
||||
args: {},
|
||||
returns: v.object({ apiUrl: v.union(v.string(), v.null()), apiToken: v.union(v.string(), v.null()) }),
|
||||
handler: async () => ({
|
||||
apiUrl: process.env.CONUSAI_API_URL ?? null,
|
||||
apiToken: process.env.CONUSAI_API_TOKEN ?? null,
|
||||
}),
|
||||
})
|
||||
Reference in New Issue
Block a user