Skip to content

Commit

Permalink
fix server for node
Browse files Browse the repository at this point in the history
  • Loading branch information
samu committed Dec 13, 2024
1 parent 7ea293c commit da24dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/createServer/createServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export function createServer(params?: CreateServerParams): Server {

return (...endpoints) => {
if (
Deno.env.get("DENO_DEPLOYMENT_ID") !== undefined ||
(typeof Deno !== "undefined" &&
Deno.env.get("DENO_DEPLOYMENT_ID") !== undefined) ||
(typeof Deno !== "undefined" && Deno.version && Deno.version.deno)
) {
consoleLogger.info("Environment check: deno detected");
Expand Down

0 comments on commit da24dd6

Please sign in to comment.