Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
feat: use version from package.json in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
samerbuna committed Dec 29, 2022
1 parent 4350dc4 commit 05fba57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/ssr-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { config } from "store/index"
const ssrRouter = express.Router({ caseSensitive: true })

ssrRouter.get("/debug", async (req, res) => {
const { version } = await import("../../package.json")
res.send({
packageVersion: process.env.npm_package_version,
version,
network: config.network,
graphqlUrl: config.graphqlUrl,
graphqlSubscriptionUrl: config.graphqlSubscriptionUrl,
Expand Down

0 comments on commit 05fba57

Please sign in to comment.