Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@netlify/plugin-nextjs
Advanced tools
Next.js is supported natively on Netlify, and in most cases you will not need to install or configure anything. This repo includes the packages used to support Next.js on Netlify.
How to add new integration test scenarios to the application:
tests/fixtures/<your-name>
next.config.js
to be a standalone applicationpostinstall
script that runs the next build
. It's important to notice that the
integration tests rely on a already built next.js application in this folder. They rely on the
.next
folder.Currently the tests require a built version of the
dist/run/handlers/cache.cjs
so you need to runnpm run build
before executing the integration tests.
In addition, the integration tests need to be prepared before first use. You can do this by running
npm run pretest
. To speed up this process and build only the fixtures whose name starts with a
given prefix, run npm run pretest -- <prefix>
.
Prerequisite
Needs the
netlify-cli
installed and being logged in having access to Netlify Testing Organization
The e2e tests can be invoked with npm run e2e
and perform a full e2e test. This means they do the
following:
npm run build
in the repository)npm pack
to the temp directory.npm pack
(this is like installing a
node_module from the registry)netlify.toml
inside the temp directory of the fixture and adding the runtime as a
plugin.netlify deploy --build
invoking the runtime. This will use the
next-runtime-testing as site to
deploy to.deployId
and url
of the deployed site to run some
playwright tests against, asserting the correctness of the runtime.[!TIP] If you'd like to always keep the deployment and the local fixture around for troubleshooting, run
E2E_PERSIST=1 npm run e2e
.
To cleanup old and dangling deploys from failed builds you can run the following script:
npx tsx ./tools/e2e/cleanup-deploys.ts
This will cleanup all created deploys on the next-runtime-testing site.
FAQs
Run Next.js seamlessly on Netlify
We found that @netlify/plugin-nextjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 21 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.