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

chore: use-court-functions-upload-to-ipfs-function #19

Merged
merged 7 commits into from
Jun 13, 2024

Conversation

Harman-singh-waraich
Copy link

No description provided.

Copy link

netlify bot commented Jun 7, 2024

Deploy Preview for kleros-scout-app ready!

Name Link
🔨 Latest commit 2238cf1
🔍 Latest deploy log https://app.netlify.com/sites/kleros-scout-app/deploys/666ae46c0031170008056e77
😎 Deploy Preview https://deploy-preview-19--kleros-scout-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jaybuidl jaybuidl requested a review from kemuru June 12, 2024 11:52
@jaybuidl jaybuidl linked an issue Jun 12, 2024 that may be closed by this pull request
@jaybuidl jaybuidl removed a link to an issue Jun 12, 2024

return fetch(url, {
const url = `${process.env.REACT_APP_COURT_FUNCTIONS_URL}/.netlify/functions/upload-to-ipfs?operation=${operation}&pinToGraph=${pinToGraph}`
Copy link
Collaborator

@kemuru kemuru Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we cannot use env variables in this repo I believe. so we might need to hardcode const REACT_APP_COURT_FUNCTIONS_URL = https://kleros-api.netlify.app in this file/ or create another file for storing global public variables

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this purpose, i prefer just hardcoding it inside the url itself, as i don't see this api being used anywhere else besides this function

@kemuru kemuru self-requested a review June 13, 2024 09:57
Copy link
Collaborator

@kemuru kemuru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kemuru kemuru merged commit b33014e into main Jun 13, 2024
9 checks passed
@kemuru kemuru deleted the chore/use-court-functions-upload-to-ipfs branch June 13, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants