Skip to content

Commit

Permalink
Use nodejs 18
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Jan 5, 2023
1 parent 98adbc1 commit c470a43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

WORKDIR /src

Expand Down
6 changes: 6 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit c470a43

Please sign in to comment.