diff --git a/.gitignore b/.gitignore index eb1a5c5d..1f5dc80a 100644 --- a/.gitignore +++ b/.gitignore @@ -140,4 +140,4 @@ frontend/package-lock.json .vscode -.metals \ No newline at end of file +.metals diff --git a/frontend/.gitignore b/frontend/.gitignore index 52a95b8e..51e719a6 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -33,4 +33,4 @@ yarn-error.log* .vercel ../synbiohub-docker/ -commitHash.txt +**/commitHash.txt diff --git a/frontend/package.json b/frontend/package.json index b7d66800..58d96e24 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -3,9 +3,11 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "NODE_OPTIONS=--openssl-legacy-provider node customDev.js", - "dev1": "node customDev.js", - "build": "next build", + "dev": "git rev-parse HEAD > ./public/commitHash.txt; next dev -p 3333", + "devNextGen": "git rev-parse HEAD > ./public/commitHash.txt; NODE_OPTIONS=--openssl-legacy-provider next dev -p 3333", + "build": "git rev-parse HEAD > ./public/commitHash.txt; next build", + "buildNextGen": "git rev-parse HEAD > ./public/commitHash.txt; NODE_OPTIONS=--openssl-legacy-provider next build", + "testbuild": "NODE_OPTIONS=--openssl-legacy-provider next build", "start": "next start -p 3333", "lint": "eslint '*/**/*.{js,jsx}'", "lint.fix": "eslint '*/**/*.{js,jsx}' --fix", diff --git a/frontend/public/commitHash.txt b/frontend/public/commitHash.txt deleted file mode 100644 index dc834d79..00000000 --- a/frontend/public/commitHash.txt +++ /dev/null @@ -1 +0,0 @@ -8d2d9889e729ae9f379eb2de65b06d333f4c7ec0 \ No newline at end of file