Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
pr-view
allows you to deploy preview deployments for your web app pull requests (PR). Share your web app (including all static assets) with others before checking in your code.
Currently pr-view
requires:
Install pr-view
by running the following command:
npm:
npm install pr-view --save-dev
yarn:
yarn add -D pr-view
npm:
npm install -g pr-view
yarn:
yarn global add pr-view
For a more detailed example, see: examples/circleci-nextjs-app
Create pr-view.json
file at the root of your Next.js
app:
{
"appName": "pr-view-nextjs-app",
"memorySize": 512,
"framework": "next.js",
"domain": "example.com"
}
Add the following command in your CI/CD build as a step in your PR builds:
pr-view deploy
(prefix yarn run
or npm run
for local execution)
If a domain is provided in pr-view.json
, it sets {branchName}.{appName}-pr-view.{domainName}
as the URL.
After the deployment is complete, it will append a comment on your PR.
Recommended: for faster preview deployments, create a separate build job for pr-view
that runs in parallel to your PR build.
To delete deployments once PRs are merged/closed, you can do it one of two ways:
Run the following command:
pr-view cleanup
(prefix yarn run
or npm run
for local execution)
This will cleanup the stale deployment for matching the current branch.
pr-view
uses the serverless
framework to deploy your entire web app to AWS.pr-view-deployments
, This is used to store metadata.You're welcome to contribute a pull request.
pr-view
is licensed under the MIT License.
Special thanks to the authors of the following projects:
serverless
serverless-next.js
FAQs
Preview deployments for your pull requests
The npm package pr-view receives a total of 1 weekly downloads. As such, pr-view popularity was classified as not popular.
We found that pr-view 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.