
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
@serverless-queue/nextjs
Advanced tools
The easiest way to use a job queue in your Next.js project
The easiest way to integrate ServerlessQueue with your Next.Js project.
SERVERLESS_QUEUE_TOKEN
in your .env.local
fileSERVERLESS_QUEUE_TOKEN=your_token_here
npm install --save @serverless-queue/nextjs
// pages/api/queues/example.js
import { Queue } from "@serverless-queue/nextjs"
export default Queue(
"queues/example",
async (job) => {
// implement the background job here
}
)
.enqueue
on it with the payload needed to complete the job// pages/api/example.js
import exampleQueue from "./queues/example"
export default async (req, res) => {
// handle logic that can be completed as part of the request
// enqueue a job to complete work
// that should be completed asynchronously after the request
await exampleQueue.enqueue({ field: "value" })
}
Serverless Queue supports encrypting the job payload data so that our servers never have access to potentially sensitive information. To enable this feature simply set a 32 character encryption key using the environment variable SERVERLESS_QUEUE_ENCRYPTION_KEY
and the client library will automatically encrypt and decrypt the payload using this key.
FAQs
The easiest way to use a job queue in your Next.js project
The npm package @serverless-queue/nextjs receives a total of 1 weekly downloads. As such, @serverless-queue/nextjs popularity was classified as not popular.
We found that @serverless-queue/nextjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.