Skip to content

Commit

Permalink
debug process.env.NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jan 24, 2025
1 parent e1fb60e commit 408313d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vike-cloudflare/assets/vike.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ export default {
* @returns {Promise<Response>}
*/
async fetch(request, env, ctx) {
console.log('env', env)
// console.log('globalThis', globalThis)
console.log('env.NODE_ENV', env.NODE_ENV)
// process.env.NODE_ENV = env.NODE_ENV
console.log('process.env.NODE_ENV', process.env.NODE_ENV) // prints 'production'
return handleSsr(request.url, { env, ctx });
},
};

0 comments on commit 408313d

Please sign in to comment.