
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.