feat: automate config.json copying and update dependencies

- Added a script (copy_config.js) to copy config.json from the root directory to the frontend's public directory before starting the development server, building, or starting the application.
- Updated package.json scripts to include the config copying step.
- Updated dependencies in package.json, including adding web3 and ensuring tailwindcss is included in devDependencies.
- Modified tsconfig.json to include a path for the config file.
- Added a new config.json file in the public directory with API_URL, CONTRACT_ADDRESS, and ABI details for the smart contract.
This commit is contained in:
averel10
2025-11-11 21:48:56 +01:00
parent fc31e5e2d1
commit f10da70c48
6 changed files with 933 additions and 99 deletions

View File

@@ -19,7 +19,8 @@
}
],
"paths": {
"@/*": ["./*"]
"@/*": ["./*"],
"@/config": ["../config.json"]
}
},
"include": [
@@ -29,6 +30,6 @@
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
"**/*.mts"
],
, "copy_config.js" ],
"exclude": ["node_modules"]
}