From 4e923c9c65b8105367f579ac1703a739e64f2e1c Mon Sep 17 00:00:00 2001 From: Ishan Date: Sat, 20 Apr 2024 01:45:56 +0530 Subject: [PATCH] Added homepage --- server/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/package.json b/server/package.json index dacd516..a4831f8 100644 --- a/server/package.json +++ b/server/package.json @@ -3,14 +3,14 @@ "version": "1.0.0", "description": "", "main": "index.js", - "homepage": "%REACT_APP_GH_PAGES% ? 'https://ishannaik.github.io/brainwave/' : ''", + "homepage": "%REACT_APP_GH_PAGES% ? '/brainwave' : ''", "scripts": { "start": "node server.js", - "predeploy": "REACT_APP_GH_PAGES=true react-scripts build", - "deploy": "gh-pages -d build", + "predeploy": "set REACT_APP_GH_PAGES=true && npm run build", + "deploy": "gh-pages -d ../client/dist", "test": "echo \"Error: no test specified\" && exit 1", "build": "npm install && npm run build:client", - "build:client": "cd ../client && npm install && npm run build " + "build:client": "cd ../client && npm install && npm run build" }, "keywords": [], "author": "",