Skip to content

Commit

Permalink
Merge branch 'main' into isaacroldan-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan authored Aug 21, 2024
2 parents b8615e0 + 864edba commit 2bb5553
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ app.use("/*", shopify.ensureInstalledOnShop(), async (_req, res, _next) => {
return res
.status(200)
.set("Content-Type", "text/html")
.send(readFileSync(join(STATIC_PATH, "index.html")));
.send(
readFileSync(join(STATIC_PATH, "index.html"))
.toString()
.replace("%VITE_SHOPIFY_API_KEY%", process.env.SHOPIFY_API_KEY || "")
);
});

app.listen(PORT);

0 comments on commit 2bb5553

Please sign in to comment.