The Registry is kind of like a database overview with the folder app/_products
being your local database.
The file will be build during build time once and can then be queried efficiently within your app.
As mentioned, the script creating the registry will run automatically during build time.
To create the Registry manually, e.g. to see changes that you made locally in any file within app/_products
, use
npm run build:registry
The Registry itself is a JSON file created in app/_registry/productRegistry.json
. Don't change this file manually. Always use the above npm script.
All helper functions are within /app/_lib/registry.ts