@opensaas/keystone-nextjs-auth 19.0.0 → 19.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @opensaas-keystone/nextjs-auth
2
2
 
3
+ ## 19.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fa61bd9: Allow custom port to be defined by env `PORT` as well as a custom path
8
+
3
9
  ## 19.0.0
4
10
 
5
11
  ### Major Changes
@@ -90,7 +90,7 @@ module.exports = withPreconstruct({
90
90
  return [
91
91
  {
92
92
  source: '/api/__keystone_api_build',
93
- destination: 'http://localhost:3000<%= keystonePath || '' %>/api/__keystone_api_build',
93
+ destination: 'http://localhost:<%= process.env.PORT || 3000 %><%= keystonePath || '' %>/api/__keystone_api_build',
94
94
  basePath: false
95
95
  }
96
96
  ];
@@ -90,7 +90,7 @@ module.exports = withPreconstruct({
90
90
  return [
91
91
  {
92
92
  source: '/api/__keystone_api_build',
93
- destination: 'http://localhost:3000<%= keystonePath || '' %>/api/__keystone_api_build',
93
+ destination: 'http://localhost:<%= process.env.PORT || 3000 %><%= keystonePath || '' %>/api/__keystone_api_build',
94
94
  basePath: false
95
95
  }
96
96
  ];
@@ -56,7 +56,7 @@ module.exports = withPreconstruct({
56
56
  return [
57
57
  {
58
58
  source: '/api/__keystone_api_build',
59
- destination: 'http://localhost:3000<%= keystonePath || '' %>/api/__keystone_api_build',
59
+ destination: 'http://localhost:<%= process.env.PORT || 3000 %><%= keystonePath || '' %>/api/__keystone_api_build',
60
60
  basePath: false
61
61
  }
62
62
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensaas/keystone-nextjs-auth",
3
- "version": "19.0.0",
3
+ "version": "19.1.0",
4
4
  "repository": "https://github.com/opensaasau/keystone-nextjs-auth",
5
5
  "license": "MIT",
6
6
  "main": "dist/opensaas-keystone-nextjs-auth.cjs.js",
@@ -43,7 +43,7 @@ module.exports = withPreconstruct({
43
43
  return [
44
44
  {
45
45
  source: '/api/__keystone_api_build',
46
- destination: 'http://localhost:3000<%= keystonePath || '' %>/api/__keystone_api_build',
46
+ destination: 'http://localhost:<%= process.env.PORT || 3000 %><%= keystonePath || '' %>/api/__keystone_api_build',
47
47
  basePath: false
48
48
  }
49
49
  ];