Skip to content

Commit

Permalink
Merge pull request #4 from paritytech/pg/update
Browse files Browse the repository at this point in the history
Add configurable backend url
  • Loading branch information
pgherveou authored Dec 3, 2024
2 parents 1599e7c + 182350e commit 8e2cdd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export async function compile(sources: SolcInput): Promise<SolcOutput> {
}),
}

const response = await fetch('https://remix-backend.polkadot.io/resolc', {
const BACKENDROOT_URL =
process.env.REMIX_BACKEND ?? 'https://remix-backend.polkadot.io'
const response = await fetch(`${BACKENDROOT_URL}/resolc`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 8e2cdd6

Please sign in to comment.