Skip to content

Commit

Permalink
chore: revert node upgrade (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency authored Aug 23, 2023
1 parent 8ccb5d0 commit 5d7b88b
Show file tree
Hide file tree
Showing 8 changed files with 38,408 additions and 22,450 deletions.
14 changes: 12 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
name: Run tests
command: npm run test -- --coverage
- codecov/upload
- when:
condition:
and:
- not:
equal: ["16.16.0", << parameters.node_version >>]
steps:
# node 17+ workaround https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
- run:
echo 'export NODE_OPTIONS=--openssl-legacy-provider' >>
$BASH_ENV
- when:
condition:
and:
Expand All @@ -44,7 +54,7 @@ jobs:
default: "RELEASE"
executor:
name: node/default
tag: "18.16.1"
tag: "16.16.0"
resource_class: large
steps:
- install-packages
Expand Down Expand Up @@ -104,7 +114,7 @@ workflows:
matrix:
parameters:
node_version:
- "18.16.1"
- "16.16.0"
- create:
name: create-<< matrix.app_env >>
matrix:
Expand Down
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ HTTPS=true
REACT_APP_WEB3AUTH_NETWORK=testnet
REACT_APP_WEB3AUTH_CLIENTID=BKj3lr6GfN2CnvO4CIKo5fuoCg_TpHsAPK7R8lbl6kUlz0CAH_5mFNswScEb7M6szV4hd1Tkwa2oPZ9KiXJB-44
REACT_APP_VERSION=${npm_package_version}
GENERATE_SOURCEMAP=false
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.16.1
16.16.0
24 changes: 2 additions & 22 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,15 @@
const webpack = require("webpack")

module.exports = {
webpack: function override(webpackConfig) {
webpackConfig.resolve.fallback = {
buffer: require.resolve("buffer"),
crypto: require.resolve("crypto-browserify"),
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
process: require.resolve("process/browser"),
stream: require.resolve("stream-browserify"),
zlib: require.resolve("browserify-zlib"),
}
webpackConfig.plugins.push(
new webpack.ProvidePlugin({
process: "process/browser",
Buffer: ["buffer", "Buffer"],
}),
)
webpackConfig.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto",
resolve: {
fullySpecified: false,
},
})

return webpackConfig
},
devServer: function(configDevServer) {
return function(proxy, allowedHosts) {
devServer: function (configDevServer) {
return function (proxy, allowedHosts) {
const config = configDevServer(proxy, allowedHosts)
return config
// return { ...config, public: "wallet.end-labs.local" }
Expand Down
Loading

0 comments on commit 5d7b88b

Please sign in to comment.