@netlify/plugin-nextjs 4.27.1 → 4.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,8 @@ const generateFunctions = async ({ FUNCTIONS_SRC = constants_1.DEFAULT_FUNCTIONS
27
27
  const apiHandlerSource = await (0, getApiHandler_1.getApiHandler)({
28
28
  page: route,
29
29
  config,
30
+ publishDir,
31
+ appDir: (0, pathe_1.relative)(functionDir, appDir),
30
32
  });
31
33
  const functionName = (0, utils_1.getFunctionNameForPage)(route, config.type === "experimental-background" /* ApiRouteType.BACKGROUND */);
32
34
  await (0, fs_extra_1.ensureDir)((0, pathe_1.join)(functionsDir, functionName));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/plugin-nextjs",
3
- "version": "4.27.1",
3
+ "version": "4.27.2",
4
4
  "description": "Run Next.js seamlessly on Netlify",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@delucis/if-env": "^1.1.2",
37
- "@netlify/build": "^27.20.6",
37
+ "@netlify/build": "^28.1.0",
38
38
  "@types/fs-extra": "^9.0.13",
39
39
  "@types/jest": "^27.4.1",
40
40
  "@types/merge-stream": "^1.1.2",