Skip to content

Commit

Permalink
update backend url
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangoMan committed Mar 23, 2024
1 parent 94fc525 commit b68fe20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ app.get("/challenges", withRole("admin"), async (request, response) => {

app.post("/api/frame", (req, res) => {
const baseUrl = "https://speedrunethereum.com";
const apiUrl = "http://localhost:49832";
const BG_SERVER = process.env.BG_BACKEND;

const challengeButtons = {
0: {
Expand Down Expand Up @@ -458,7 +458,7 @@ app.post("/api/frame", (req, res) => {
<meta property="fc:frame:button:1:action" content="link" />
<meta property="fc:frame:button:1:target" content="${challengeButtons[idAsNumber].link}" />
<meta property="fc:frame:button:2" content="Next →" />
<meta property="fc:frame:post_url" content="${apiUrl}/api/frame?id=${nextId}" />
<meta property="fc:frame:post_url" content="${BG_SERVER}/api/frame?id=${nextId}" />
</head></html>`);
}
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<meta property="fc:frame:button:1:target" content="https://github.com/scaffold-eth/se-2-challenges" />

<meta property="fc:frame:button:2" content="⚡️ Start" />
<meta property="fc:frame:post_url" content="http://localhost:49832/api/frame?id=0" />
<meta property="fc:frame:post_url" content="https://buidlguidl-v3.ew.r.appspot.com/api/frame?id=0" />

<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Speed Run Ethereum</title>
Expand Down

0 comments on commit b68fe20

Please sign in to comment.