My project is currently structured as
Root:
Folder 1/
Folder 2/
Folder 3/
..
Frontend/
The front end folder contains my Nextjs project, package.json file, and everything else. However, Heroku requires the content in the Frontend/ folder to be in the root directory, which I am hesitant to do as it may break my project. In an attempt to avoid this, I have copied the package.json file to the root directory.
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"engines": {
"node": "17.x"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"devDependencies": {
"eslint": "8.15.0",
"eslint-config-next": "12.1.6",
"fs": "^0.0.1-security",
"next": "^12.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"solc": "^0.8.15",
"web3": "^1.7.4",
"web3-utils": "^1.7.4"
}
}
Is there a way to specify the file path to the Frontend folder so that when Heroku runs the build script, it knows to look into the frontend folder instead of the root directory?