Skip to content

Commit

Permalink
fix: test verify
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Jan 15, 2024
1 parent d9d3ea3 commit 878e8b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions composables/useScreening.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const validateAddress = useMemoize(async (address: string) => {
if (!runtimeConfig.public.screeningApiUrl) {
return;
}
const url = new URL(runtimeConfig.public.screeningApiUrl);
url.searchParams.append("address", address);
const response = await $fetch(url.toString());
const response = await $fetch(`/verify?address=${address}`);
if (!response.result) {
throw new Error("We were unable to process this transaction...");
}
Expand Down
5 changes: 5 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export default defineNuxtConfig({
autoprefixer: {},
},
},
nitro: {
routeRules: {
"/verify": { proxy: process.env.SCREENING_API_URL },
},
},
runtimeConfig: {
public: {
walletConnectProjectID: process.env.WALLET_CONNECT_PROJECT_ID,
Expand Down

0 comments on commit 878e8b9

Please sign in to comment.