@nrwl/next 15.9.2 → 15.9.4
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/next",
|
|
3
|
-
"version": "15.9.
|
|
3
|
+
"version": "15.9.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:\n\n\n- Scaffolding for creating, building, serving, linting, and testing Next.js applications.\n\n- Integration with building, serving, and exporting a Next.js application.\n\n- Integration with React libraries within the workspace. \n\nWhen using Next.js in Nx, you get the out-of-the-box support for TypeScript, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
38
|
-
"@nrwl/devkit": "15.9.
|
|
39
|
-
"@nrwl/js": "15.9.
|
|
40
|
-
"@nrwl/linter": "15.9.
|
|
41
|
-
"@nrwl/react": "15.9.
|
|
42
|
-
"@nrwl/workspace": "15.9.
|
|
38
|
+
"@nrwl/devkit": "15.9.4",
|
|
39
|
+
"@nrwl/js": "15.9.4",
|
|
40
|
+
"@nrwl/linter": "15.9.4",
|
|
41
|
+
"@nrwl/react": "15.9.4",
|
|
42
|
+
"@nrwl/workspace": "15.9.4",
|
|
43
43
|
"@svgr/webpack": "^6.1.2",
|
|
44
44
|
"chalk": "^4.1.0",
|
|
45
45
|
"copy-webpack-plugin": "^10.2.4",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"types": "./index.d.ts",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "06c3e5c9e15882b67d255fe6cf22da747f93747f"
|
|
63
63
|
}
|
|
@@ -3,21 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultServer = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const express = require("express");
|
|
6
|
-
const path = require("path");
|
|
7
|
-
const next_1 = require("next");
|
|
8
6
|
/**
|
|
9
7
|
* Adapted from https://github.com/zeit/next.js/blob/master/examples/with-custom-reverse-proxy/server.js
|
|
10
8
|
* @param settings
|
|
11
9
|
*/
|
|
12
10
|
function defaultServer(settings, proxyConfig) {
|
|
13
11
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
const
|
|
12
|
+
const next = require('next');
|
|
13
|
+
const app = next(settings);
|
|
15
14
|
const handle = app.getRequestHandler();
|
|
16
15
|
yield app.prepare();
|
|
17
16
|
const server = express();
|
|
18
17
|
server.disable('x-powered-by');
|
|
19
|
-
// Serve shared assets copied to `public` folder
|
|
20
|
-
server.use(express.static(path.resolve(settings.dir, 'public')));
|
|
21
18
|
// Set up the proxy.
|
|
22
19
|
if (proxyConfig) {
|
|
23
20
|
const proxyMiddleware = require('http-proxy-middleware').createProxyMiddleware;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-server.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/executors/server/lib/default-server.ts"],"names":[],"mappings":";;;;AAAA,mCAAmC;
|
|
1
|
+
{"version":3,"file":"default-server.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/executors/server/lib/default-server.ts"],"names":[],"mappings":";;;;AAAA,mCAAmC;AAGnC;;;GAGG;AACH,SAAsB,aAAa,CACjC,QAA2B,EAC3B,WAAyB;;QAEzB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAEvC,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC;QAEpB,MAAM,MAAM,GAAoB,OAAO,EAAE,CAAC;QAC1C,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAE/B,oBAAoB;QACpB,IAAI,WAAW,EAAE;YACf,MAAM,eAAe,GACnB,OAAO,CAAC,uBAAuB,CAAC,CAAC,qBAAqB,CAAC;YACzD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC3C,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC7D,CAAC,CAAC,CAAC;SACJ;QAED,wEAAwE;QACxE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAEhD,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;CAAA;AA1BD,sCA0BC"}
|