Skip to content

Commit ca0f663

Browse files
authored
site: use the package.json version directly (#467)
1 parent c3d3eb2 commit ca0f663

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/_data/site.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
'use strict';
44

5+
const path = require('node:path');
56
const process = require('node:process');
67

78
const IS_NETLIFY = process.env.NETLIFY === 'true';
9+
const {version: quicklinkVersion} = require(path.join(__dirname, '../../../package.json'));
810

911
module.exports = () => {
1012
return {
@@ -16,7 +18,7 @@ module.exports = () => {
1618
url: IS_NETLIFY ? process.env.DEPLOY_PRIME_URL : 'https://getquick.link',
1719
isNetlify: IS_NETLIFY,
1820
quicklinkGithubURL: 'https://github.com/GoogleChromeLabs/quicklink',
19-
quicklinkVersion: '3.0.1',
21+
quicklinkVersion,
2022
quicklinkSizeLimit: '1KB',
2123
bottomResource: {
2224
caption: 'View source on GitHub',

0 commit comments

Comments
 (0)