mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #2352 from PR0M3TH3AN/fix-deployment-version-injection-5739441893263452551
Fix missing version info in deployment by enabling Node 20 build and hardening injection logic
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -4,12 +4,12 @@
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"engines": {
|
||||
"node": ">=22"
|
||||
"node": ">=20"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "npm run build && npx serve dist",
|
||||
"serve": "npx serve",
|
||||
"build": "node scripts/build-dist.mjs",
|
||||
"build": "node scripts/build-dist.mjs && npm run verify:dist:deploy-artifact",
|
||||
"build:css": "postcss css/tailwind.source.css -o css/tailwind.generated.css",
|
||||
"build:beacon:bundle": "node scripts/build-beacon.mjs",
|
||||
"build:beacon": "npm run build:beacon:bundle && npm run lint:inline-styles",
|
||||
|
||||
@@ -185,7 +185,7 @@ function injectVersionInfo() {
|
||||
fs.writeFileSync(indexHtmlPath, content);
|
||||
console.log(`Injected version (via fallback regex): ${hash.slice(0, 8)} • ${date}`);
|
||||
} else {
|
||||
console.warn('Could not find placeholder or tagline to inject version info.');
|
||||
throw new Error('Could not find placeholder or tagline to inject version info.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user