A lot of times you need a module that can be shared by both frontend and backend apps
packages/common
modulecd packages
mkdir common
npm init -y
npx tsc --init
Change the name to @repo/common
Export a few things from src/index.ts
export const NUMBER = 1;
package.json
of various apps (next app/react app/node app)"@repo/common": "*",
Import it in there and try to use it
Run npm install in root folder and see if it works as expected