Skip to content

Commit

Permalink
fix: Add debugging for debugging deployed app errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Jan 11, 2024
1 parent e45864b commit 81a29c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const host = process.env.RELAY_HOST

async function apiRequest(endpoint, payload = {}, method = 'POST') {
var url = `https://${process.env.SIGNALWIRE_SPACE}${endpoint}`
console.log("url =", url);
console.log("project =", process.env.SIGNALWIRE_PROJECT_KEY);
console.log("token =", process.env.SIGNALWIRE_TOKEN);
console.log("payload =", payload);

const response = await fetch(url, {
method: method,
Expand Down

0 comments on commit 81a29c4

Please sign in to comment.