@gasket/preset-nextjs 7.0.14 → 7.1.0-canary.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.
@@ -1,4 +1,5 @@
1
1
  import pluginHttps from '@gasket/plugin-https';
2
+ import pluginHttpsProxy from '@gasket/plugin-https-proxy';
2
3
  import pluginNext from '@gasket/plugin-nextjs';
3
4
  import pluginIntl from '@gasket/plugin-intl';
4
5
  import pluginWebpack from '@gasket/plugin-webpack';
@@ -15,7 +16,6 @@ export default async function presetConfig(gasket, context) {
15
16
  let typescriptPlugin;
16
17
 
17
18
  const plugins = [
18
- pluginHttps,
19
19
  pluginNext,
20
20
  pluginIntl,
21
21
  pluginWebpack,
@@ -23,13 +23,17 @@ export default async function presetConfig(gasket, context) {
23
23
  pluginLint
24
24
  ];
25
25
 
26
-
27
26
  if (context.nextServerType === 'customServer') {
28
27
  const frameworkPlugin = await import('@gasket/plugin-express');
29
28
 
29
+ plugins.push(pluginHttps);
30
30
  plugins.push(frameworkPlugin.default || frameworkPlugin);
31
31
  }
32
32
 
33
+ if (context.nextDevProxy) {
34
+ plugins.push(pluginHttpsProxy);
35
+ }
36
+
33
37
  if ('testPlugins' in context && context.testPlugins.length > 0) {
34
38
  await Promise.all(context.testPlugins.map(async (testPlugin) => {
35
39
  const plugin = await import(testPlugin);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/preset-nextjs",
3
- "version": "7.0.14",
3
+ "version": "7.1.0-canary.2",
4
4
  "description": "Basic NextJS Framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -31,18 +31,19 @@
31
31
  },
32
32
  "homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-preset-nextjs",
33
33
  "dependencies": {
34
- "@gasket/plugin-cypress": "^7.0.9",
35
- "@gasket/plugin-express": "^7.0.14",
36
- "@gasket/plugin-https": "^7.0.9",
37
- "@gasket/plugin-intl": "^7.0.14",
38
- "@gasket/plugin-jest": "^7.0.10",
39
- "@gasket/plugin-lint": "^7.0.3",
40
- "@gasket/plugin-mocha": "^7.0.4",
41
- "@gasket/plugin-nextjs": "^7.0.9",
42
- "@gasket/plugin-typescript": "^7.0.1",
43
- "@gasket/plugin-webpack": "^7.0.9",
44
- "@gasket/plugin-winston": "^7.0.9",
45
- "@gasket/utils": "^7.0.9"
34
+ "@gasket/plugin-cypress": "7.1.0-canary.2",
35
+ "@gasket/plugin-express": "7.1.0-canary.2",
36
+ "@gasket/plugin-https": "7.1.0-canary.2",
37
+ "@gasket/plugin-https-proxy": "7.1.0-canary.2",
38
+ "@gasket/plugin-intl": "7.1.0-canary.2",
39
+ "@gasket/plugin-jest": "7.1.0-canary.2",
40
+ "@gasket/plugin-lint": "7.1.0-canary.2",
41
+ "@gasket/plugin-mocha": "7.1.0-canary.2",
42
+ "@gasket/plugin-nextjs": "7.1.0-canary.2",
43
+ "@gasket/plugin-typescript": "7.1.0-canary.2",
44
+ "@gasket/plugin-webpack": "7.1.0-canary.2",
45
+ "@gasket/plugin-winston": "7.1.0-canary.2",
46
+ "@gasket/utils": "7.1.0-canary.2"
46
47
  },
47
48
  "devDependencies": {
48
49
  "cross-env": "^7.0.3",
@@ -70,5 +71,5 @@
70
71
  "jest": {
71
72
  "transform": {}
72
73
  },
73
- "gitHead": "4ccc8267d551c877c075cdfdb680ec688970d506"
74
+ "gitHead": "e38a3cb7e1bfd3ec8755a7155c9678ff7ab82a35"
74
75
  }