Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@netlify/plugin-nextjs

Package Overview
Dependencies
Maintainers
23
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/plugin-nextjs - npm Package Compare versions

Comparing version 5.0.0-rc.6 to 5.0.0-rc.7

dist/build/content/next-shims/telemetry-storage.cjs

4

dist/build/content/prerendered.js

@@ -10,3 +10,5 @@

copyPrerenderedContent
} from "../../esm-chunks/chunk-75UGFPYW.js";
} from "../../esm-chunks/chunk-4635LKT6.js";
import "../../esm-chunks/chunk-PDPDW32D.js";
import "../../esm-chunks/chunk-Y3K5Q6FP.js";
import "../../esm-chunks/chunk-VZNKO4OO.js";

@@ -13,0 +15,0 @@ import "../../esm-chunks/chunk-TYCYFZ22.js";

@@ -10,5 +10,8 @@

copyNextServerCode,
getPatchesToApply,
verifyHandlerDirStructure,
writeTagsManifest
} from "../../esm-chunks/chunk-CSTSA3JJ.js";
} from "../../esm-chunks/chunk-YSGPGDIG.js";
import "../../esm-chunks/chunk-PDPDW32D.js";
import "../../esm-chunks/chunk-Y3K5Q6FP.js";
import "../../esm-chunks/chunk-VZNKO4OO.js";

@@ -22,4 +25,5 @@ import "../../esm-chunks/chunk-MGPEWDDD.js";

copyNextServerCode,
getPatchesToApply,
verifyHandlerDirStructure,
writeTagsManifest
};

@@ -13,3 +13,5 @@

unpublishStaticDir
} from "../../esm-chunks/chunk-WFVNEURA.js";
} from "../../esm-chunks/chunk-GV3YIJ33.js";
import "../../esm-chunks/chunk-PDPDW32D.js";
import "../../esm-chunks/chunk-Y3K5Q6FP.js";
import "../../esm-chunks/chunk-VZNKO4OO.js";

@@ -16,0 +18,0 @@ import "../../esm-chunks/chunk-TYCYFZ22.js";

@@ -9,4 +9,6 @@

createServerHandler
} from "../../esm-chunks/chunk-W7XTKMHH.js";
import "../../esm-chunks/chunk-CSTSA3JJ.js";
} from "../../esm-chunks/chunk-757FQQND.js";
import "../../esm-chunks/chunk-YSGPGDIG.js";
import "../../esm-chunks/chunk-PDPDW32D.js";
import "../../esm-chunks/chunk-Y3K5Q6FP.js";
import "../../esm-chunks/chunk-VZNKO4OO.js";

@@ -13,0 +15,0 @@ import "../../esm-chunks/chunk-3NYX5FXN.js";

@@ -9,3 +9,3 @@

copyPrerenderedContent
} from "./esm-chunks/chunk-75UGFPYW.js";
} from "./esm-chunks/chunk-4635LKT6.js";
import {

@@ -17,3 +17,3 @@ copyStaticAssets,

unpublishStaticDir
} from "./esm-chunks/chunk-WFVNEURA.js";
} from "./esm-chunks/chunk-GV3YIJ33.js";
import {

@@ -24,4 +24,11 @@ createEdgeHandlers

createServerHandler
} from "./esm-chunks/chunk-W7XTKMHH.js";
import "./esm-chunks/chunk-CSTSA3JJ.js";
} from "./esm-chunks/chunk-757FQQND.js";
import "./esm-chunks/chunk-YSGPGDIG.js";
import {
wrapTracer
} from "./esm-chunks/chunk-PDPDW32D.js";
import {
init_esm,
trace
} from "./esm-chunks/chunk-Y3K5Q6FP.js";
import "./esm-chunks/chunk-VZNKO4OO.js";

@@ -48,39 +55,52 @@ import {

// src/index.ts
init_esm();
var tracer = wrapTracer(trace.getTracer("Next.js runtime"));
var onPreBuild = async (options) => {
process.env.NEXT_PRIVATE_STANDALONE = "true";
if (!options.constants.IS_LOCAL) {
await restoreBuildCache(new PluginContext(options));
}
await tracer.withActiveSpan("onPreBuild", async () => {
process.env.NEXT_PRIVATE_STANDALONE = "true";
if (!options.constants.IS_LOCAL) {
await restoreBuildCache(new PluginContext(options));
}
});
};
var onBuild = async (options) => {
const ctx = new PluginContext(options);
verifyPublishDir(ctx);
verifyBuildConfig(ctx);
if (!options.constants.IS_LOCAL) {
await saveBuildCache(ctx);
}
if (ctx.buildConfig.output === "export") {
return copyStaticExport(ctx);
}
await Promise.all([
copyStaticAssets(ctx),
copyStaticContent(ctx),
copyPrerenderedContent(ctx),
createServerHandler(ctx),
createEdgeHandlers(ctx),
setImageConfig(ctx)
]);
await tracer.withActiveSpan("onBuild", async (span) => {
const ctx = new PluginContext(options);
verifyPublishDir(ctx);
verifyBuildConfig(ctx);
span.setAttribute("next.buildConfig", JSON.stringify(ctx.buildConfig));
if (!options.constants.IS_LOCAL) {
await saveBuildCache(ctx);
}
if (ctx.buildConfig.output === "export") {
return copyStaticExport(ctx);
}
await Promise.all([
copyStaticAssets(ctx),
copyStaticContent(ctx),
copyPrerenderedContent(ctx),
createServerHandler(ctx),
createEdgeHandlers(ctx),
setImageConfig(ctx)
]);
});
};
var onPostBuild = async (options) => {
await publishStaticDir(new PluginContext(options));
await tracer.withActiveSpan("onPostBuild", async () => {
await publishStaticDir(new PluginContext(options));
});
};
var onSuccess = async () => {
const prewarm = [process.env.DEPLOY_URL, process.env.DEPLOY_PRIME_URL, process.env.URL].filter(
// If running locally then the deploy ID is a placeholder value. Filtering for `https://0--` removes it.
(url) => Boolean(url && !url.startsWith("https://0--"))
);
await Promise.allSettled(prewarm.map((url) => fetch(url)));
await tracer.withActiveSpan("onSuccess", async () => {
const prewarm = [process.env.DEPLOY_URL, process.env.DEPLOY_PRIME_URL, process.env.URL].filter(
// If running locally then the deploy ID is a placeholder value. Filtering for `https://0--` removes it.
(url) => Boolean(url && !url.startsWith("https://0--"))
);
await Promise.allSettled(prewarm.map((url) => fetch(url)));
});
};
var onEnd = async (options) => {
await unpublishStaticDir(new PluginContext(options));
await tracer.withActiveSpan("onEnd", async () => {
await unpublishStaticDir(new PluginContext(options));
});
};

@@ -87,0 +107,0 @@ export {

{
"name": "@netlify/plugin-nextjs",
"version": "5.0.0-rc.6",
"version": "5.0.0-rc.7",
"description": "Run Next.js seamlessly on Netlify",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -43,2 +43,4 @@ # Next.js Runtime

> **Prerequisite** Run `npm run build` before running integration tests.
How to add new integration test scenarios to the application:

@@ -45,0 +47,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc