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-3ea247f";
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-3ea247f';
2
+ export const PROJECT_VERSION = '0.4.252-commit-4fa40ed';
@@ -175,22 +175,18 @@ function getFlagsActivated() {
175
175
  }
176
176
  function getDEBUG() {
177
177
  assert(isUsed);
178
- let DEBUG;
179
178
  // ssr.noExternal
180
- /* // Full implementation:
181
- // - https://github.com/vikejs/vike/commit/7637564a98f43e23834bcae2f7ada8d941958a34
182
- // - https://github.com/vikejs/vike/pull/2718
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 in edge workers
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
- DEBUG = process.env.DEBUG;
188
+ return process.env.DEBUG;
193
189
  }
194
190
  catch { }
195
- return DEBUG;
191
+ return null;
196
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.252-commit-3ea247f",
3
+ "version": "0.4.252-commit-4fa40ed",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {