diff --git a/examples/typescript/clients/custom/index.ts b/examples/typescript/clients/custom/index.ts index 852cdb2606..6a9b9ee7a7 100644 --- a/examples/typescript/clients/custom/index.ts +++ b/examples/typescript/clients/custom/index.ts @@ -29,8 +29,9 @@ config(); const evmPrivateKey = process.env.EVM_PRIVATE_KEY as `0x${string}`; const svmPrivateKey = process.env.SVM_PRIVATE_KEY as string; -const baseURL = process.env.SERVER_URL || "http://localhost:4021"; -const url = `${baseURL}/weather`; +const baseURL = process.env.RESOURCE_SERVER_URL || "http://localhost:4021"; +const endpointPath = process.env.ENDPOINT_PATH || "/weather"; +const url = `${baseURL}${endpointPath}`; /** * Makes a request with x402 payment handling.