Skip to main content
Home

Built and signed on GitHub Actions

latest

Detect when running in the Deno Deploy environment in Effection programs.

This package works with Node.js, Deno
This package works with Node.js
This package works with Deno
JSR Score
100%
Published
3 months ago (0.1.1)

Deno Deploy

Provides Deno Deploy Effection context with region, deploymentId and isDenoDeploy flag to detect when running in the Deno Deploy environment. This can be useful when testing an application that's deployed to Deno Deploy.

import { main } from "effection";
import { useDenoDeploy } from "@effectionx/deno-deploy";

await main(function* () {
  const {
    isDenoDeploy,
    deploymentId,
    region,
  } = yield* useDenoDeploy();
});
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@effectionx/deno-deploy

Import symbol

import * as deno_deploy from "@effectionx/deno-deploy";
or

Import directly with a jsr specifier

import * as deno_deploy from "jsr:@effectionx/deno-deploy";

Add Package

pnpm i jsr:@effectionx/deno-deploy
or (using pnpm 10.8 or older)
pnpm dlx jsr add @effectionx/deno-deploy

Import symbol

import * as deno_deploy from "@effectionx/deno-deploy";

Add Package

yarn add jsr:@effectionx/deno-deploy
or (using Yarn 4.8 or older)
yarn dlx jsr add @effectionx/deno-deploy

Import symbol

import * as deno_deploy from "@effectionx/deno-deploy";

Add Package

vlt install jsr:@effectionx/deno-deploy

Import symbol

import * as deno_deploy from "@effectionx/deno-deploy";

Add Package

npx jsr add @effectionx/deno-deploy

Import symbol

import * as deno_deploy from "@effectionx/deno-deploy";