@newskit-render/core 4.1.2-alpha.0 → 4.2.0-alpha.1

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/Dockerfile CHANGED
@@ -2,18 +2,13 @@ FROM node:16.13-buster
2
2
 
3
3
  WORKDIR /app
4
4
 
5
- COPY .next ./.next
6
- COPY node_modules ./node_modules
7
- COPY components ./components
8
- COPY pages ./pages
9
- COPY helpers ./helpers
10
- COPY public ./public
11
- COPY queries ./queries
12
- COPY package.json ./package.json
13
- COPY tsconfig.json ./tsconfig.json
14
- COPY newrelic.js ./newrelic.js
15
- COPY next.config.js ./next.config.js
5
+ ENV NEXT_TELEMETRY_DISABLED 1
6
+
7
+ COPY .next/standalone ./standalone
8
+ COPY public ./standalone/public
9
+ COPY .next/static ./standalone/.next/static
16
10
 
17
11
  EXPOSE 3000
12
+ ENV PORT 3000
18
13
 
19
- ENTRYPOINT ["node", "./node_modules/.bin/next", "start"]
14
+ CMD ["node", "./standalone/server.js"]
package/next.config.js CHANGED
@@ -61,6 +61,7 @@ module.exports = (phase) => {
61
61
  return config
62
62
  },
63
63
  images,
64
+ output: 'standalone',
64
65
  async rewrites() {
65
66
  return [
66
67
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "4.1.2-alpha.0",
3
+ "version": "4.2.0-alpha.1",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -44,7 +44,7 @@
44
44
  "@newskit-render/checkout": "^3.0.4-alpha.0",
45
45
  "@newskit-render/feature-flags": "^1.4.11",
46
46
  "@newskit-render/feed": "^1.4.18",
47
- "@newskit-render/my-account": "^6.1.1-alpha.0",
47
+ "@newskit-render/my-account": "^6.1.1-alpha.1",
48
48
  "@newskit-render/shared-components": "^3.2.1-alpha.0",
49
49
  "@newskit-render/standalone-components": "^3.3.1-alpha.0",
50
50
  "@newskit-render/validation": "^1.6.0",