[PR #67] [MERGED] Fix: meta info issue #65

Closed
opened 2026-05-23 08:39:49 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/appy-one/acebase-server/pull/67
Author: @appy-one
Created: 1/2/2023
Status: Merged
Merged: 1/2/2023
Merged by: @appy-one

Base: masterHead: fix/meta-info-issue-66


📝 Commits (2)

  • 36ab287 Set server version at build time, fixes #66
  • b4b6cb8 only run vars script on prepack event

📊 Changes

3 files changed (+15 additions, -5 deletions)

View changed files

build-vars.js (+11 -0)
📝 package.json (+2 -1)
📝 src/routes/meta-info.ts (+2 -4)

📄 Description

Fixes #66 by running a script in npm's prepack event hook that replaces the %SERVER_VERSION% variable with the version in package.json. This eliminates the need to import or require from package.json in the meta-info endpoint at runtime.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/appy-one/acebase-server/pull/67 **Author:** [@appy-one](https://github.com/appy-one) **Created:** 1/2/2023 **Status:** ✅ Merged **Merged:** 1/2/2023 **Merged by:** [@appy-one](https://github.com/appy-one) **Base:** `master` ← **Head:** `fix/meta-info-issue-66` --- ### 📝 Commits (2) - [`36ab287`](https://github.com/appy-one/acebase-server/commit/36ab28781a3ef8d918b6feb665e0b975718342fd) Set server version at build time, fixes #66 - [`b4b6cb8`](https://github.com/appy-one/acebase-server/commit/b4b6cb8ed4edd5674338de5f7d5bc6db78916720) only run vars script on prepack event ### 📊 Changes **3 files changed** (+15 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `build-vars.js` (+11 -0) 📝 `package.json` (+2 -1) 📝 `src/routes/meta-info.ts` (+2 -4) </details> ### 📄 Description Fixes #66 by running a script in npm's prepack event hook that replaces the `%SERVER_VERSION%` variable with the `version` in `package.json`. This eliminates the need to `import` or `require` from `package.json` in the `meta-info` endpoint at runtime. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-23 08:39:49 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-server#65
No description provided.