Skip to content

Commit

Permalink
fix: use client side request
Browse files Browse the repository at this point in the history
  • Loading branch information
orig committed May 6, 2024
1 parent 55a6cc7 commit 9c7aaba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const LinkModal = component$(({ onSubmitHandler }: LinkModalProps) => {
}

isGeneratingRandomKey.value = true;
const response = await authorizedFetch(`${process.env.API_DOMAIN}/api/v1/shortener/random`, 'GET');
const response = await authorizedFetch(`${process.env.CLIENTSIDE_API_DOMAIN}/api/v1/shortener/random`, 'GET');
const key = await response.text();
await sleep(700);
inputValue.value = { ...inputValue.value, key };
Expand Down

0 comments on commit 9c7aaba

Please sign in to comment.