Skip to content

Commit 8ee25cc

Browse files
committed
fix: 🐛 Use runtime config to access validator url
1 parent 49691ae commit 8ee25cc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

ui/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export default defineNuxtConfig({
9494
public: {
9595
codefairDomain: process.env.CODEFAIR_APP_DOMAIN,
9696
},
97+
validatorUrl: process.env.VALIDATOR_URL ?? "",
9798
},
9899

99100
vite: {

ui/server/services/compliance/metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { RepositoryProvider } from "../providers/interface";
66
import prisma from "~/server/utils/prisma";
77
import { createId } from "~/server/utils/cuid";
88

9-
const VALIDATOR_URL = process.env.VALIDATOR_URL ?? "";
9+
const VALIDATOR_URL = useRuntimeConfig().validatorUrl as string;
1010

1111
// == Types =====================================================================
1212

0 commit comments

Comments
 (0)