vike 0.4.252-commit-3ea247f → 0.4.252-commit-4fa40ed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,6 +15,8 @@ const PUBLIC_ENV_PREFIX = 'PUBLIC_ENV__';
|
|
|
15
15
|
const PUBLIC_ENV_ALLOWLIST = [
|
|
16
16
|
// https://github.com/vikejs/vike/issues/1724
|
|
17
17
|
'STORYBOOK',
|
|
18
|
+
// https://github.com/vikejs/vike/pull/3069
|
|
19
|
+
'DEBUG',
|
|
18
20
|
];
|
|
19
21
|
// TO-DO/eventually:
|
|
20
22
|
// - Make import.meta.env work inside +config.js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.252-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.252-commit-4fa40ed";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.252-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.252-commit-4fa40ed';
|
package/dist/utils/debug.js
CHANGED
|
@@ -175,22 +175,18 @@ function getFlagsActivated() {
|
|
|
175
175
|
}
|
|
176
176
|
function getDEBUG() {
|
|
177
177
|
assert(isUsed);
|
|
178
|
-
let DEBUG;
|
|
179
178
|
// ssr.noExternal
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
// - We don't implement this yet because it crashes @cloudflare/vite-plugin
|
|
184
|
-
if (import.meta.env) {
|
|
185
|
-
return import.meta.env.DEBUG
|
|
179
|
+
// - @cloudflare/vite-plugin
|
|
180
|
+
try {
|
|
181
|
+
return import.meta.env.DEBUG;
|
|
186
182
|
}
|
|
187
|
-
|
|
183
|
+
catch { }
|
|
188
184
|
// ssr.external
|
|
189
|
-
// - `process` can be undefined
|
|
190
|
-
// - We want bundlers to be able to statically replace `process.env.*`
|
|
185
|
+
// - `process` can be `undefined` (e.g. edge workers)
|
|
186
|
+
// - We want bundlers (e.g. webpack) to be able to statically replace `process.env.*`
|
|
191
187
|
try {
|
|
192
|
-
|
|
188
|
+
return process.env.DEBUG;
|
|
193
189
|
}
|
|
194
190
|
catch { }
|
|
195
|
-
return
|
|
191
|
+
return null;
|
|
196
192
|
}
|