File tree Expand file tree Collapse file tree 3 files changed +6
-37
lines changed Expand file tree Collapse file tree 3 files changed +6
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ const fetch = require("node-fetch");
4
4
5
5
( async ( ) => {
6
6
try {
7
- const production = process . env . VERCEL_ENV === "production" ;
7
+ const production = process . env . NEXT_PUBLIC_VERCEL_ENV === "production" ;
8
8
9
- const changelogUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${
10
- production ? "main" : "dev"
11
- } /CHANGELOG.md`;
9
+ const changelogUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${ production ? "main" : "beta"
10
+ } /CHANGELOG.md`;
12
11
13
12
const response = await fetch ( changelogUrl ) ;
14
13
if ( ! response . ok ) {
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ const escapeQuotes = (/** @type {string} */ str) => {
51
51
}
52
52
53
53
( async ( ) => {
54
- const production = process . env . VERCEL_ENV === "production" ;
54
+ const production = process . env . NEXT_PUBLIC_VERCEL_ENV === "production" ;
55
55
56
- const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${ production ? "main" : "dev " } /package.json` ;
57
- const pkgEnUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${ production ? "main" : "dev " } /package.nls.json` ;
56
+ const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${ production ? "main" : "beta " } /package.json` ;
57
+ const pkgEnUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${ production ? "main" : "beta " } /package.nls.json` ;
58
58
59
59
const pkg = await fetch ( pkgUrl ) ;
60
60
const pkgLocale = await fetch ( pkgEnUrl ) ;
You can’t perform that action at this time.
0 commit comments