diff --git a/Dockerfile b/Dockerfile index 4faa984..9badd03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:18-alpine WORKDIR /src diff --git a/nuxt.config.js b/nuxt.config.js index 24d8f5f..dc8b700 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,6 +1,12 @@ +import crypto from "crypto" import path from "path" import globby from "globby" +// Patch for webpack4 on nodejs 17+ +const origCreateHash = crypto.createHash +crypto.createHash = (algorithm) => + origCreateHash(algorithm === "md4" ? "sha256" : algorithm) + const packages = globby .sync(["modules/*/package.json", "modules/*/*/package.json"]) .map((dir) => {