commit 67f62d641247d155318776bed2d2d6149265ba38
parent b57ea9ef11c69d31f50e3dd0f5d1c7a009f29a39
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 14 Jan 2022 15:05:19 +0100
Add browserslist settings
Diffstat:
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/Dockerfile b/Dockerfile
@@ -11,6 +11,7 @@ FROM node:16-alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
+RUN npx browserslist@latest --update-db
RUN npm run build && npm install --only=production --ignore-scripts --prefer-offline
# Production image, copy all the files and run next
diff --git a/package-lock.json b/package-lock.json
@@ -2891,9 +2891,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001296",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001296.tgz",
- "integrity": "sha512-WfrtPEoNSoeATDlf4y3QvkwiELl9GyPLISV5GejTbbQRtQx4LhsXmc9IQ6XCL2d7UxCyEzToEZNMeqR79OUw8Q==",
+ "version": "1.0.30001299",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001299.tgz",
+ "integrity": "sha512-iujN4+x7QzqA2NCSrS5VUy+4gLmRd4xv6vbBBsmfVqTx8bLAD8097euLqQgKxSVLvxjSDcvF1T/i9ocgnUFexw==",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/browserslist"
@@ -10726,9 +10726,9 @@
"dev": true
},
"caniuse-lite": {
- "version": "1.0.30001296",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001296.tgz",
- "integrity": "sha512-WfrtPEoNSoeATDlf4y3QvkwiELl9GyPLISV5GejTbbQRtQx4LhsXmc9IQ6XCL2d7UxCyEzToEZNMeqR79OUw8Q=="
+ "version": "1.0.30001299",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001299.tgz",
+ "integrity": "sha512-iujN4+x7QzqA2NCSrS5VUy+4gLmRd4xv6vbBBsmfVqTx8bLAD8097euLqQgKxSVLvxjSDcvF1T/i9ocgnUFexw=="
},
"chalk": {
"version": "2.4.2",
diff --git a/package.json b/package.json
@@ -1,6 +1,11 @@
{
"name": "matrix-art",
"private": true,
+ "browserslist": [
+ "defaults",
+ "not IE 11",
+ "maintained node versions"
+ ],
"scripts": {
"dev-inspect": "cross-env NODE_OPTIONS='--inspect' next dev",
"dev-tests": "cross-env PLAYWRIGHT='1' next dev",