Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 7995060

Browse files
committed
chore: update prod node version & clean up
1 parent 1367918 commit 7995060

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

deploy/production/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.3.1
1+
FROM node:16.13.0
22

33
RUN mkdir /root/web
44

deploy/production/web.tar.gz

-20 Bytes
Binary file not shown.

next.config.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const webpack = require('webpack')
1+
// const webpack = require('webpack')
22

33
// next-plugins
44
const withPlugins = require('next-compose-plugins')
@@ -11,18 +11,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
1111

1212
// next-plugins end
1313

14-
const nextConfig = {
15-
webpack: (config) => {
16-
config.plugins = config.plugins || []
17-
18-
// moment locale size is too big
19-
config.plugins.push(
20-
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /(en)/),
21-
)
22-
23-
return config
24-
},
25-
}
14+
const nextConfig = {}
2615

2716
module.exports = withPlugins(
2817
// [withBundleAnalyzer, withSourceMaps, [withOffline, offlineConfig]],

0 commit comments

Comments
 (0)