Skip to content

Commit 39c4f64

Browse files
authored
Update DATA_MANAGEMENT_README.md
1 parent 395c85b commit 39c4f64

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source code/DATA_MANAGEMENT_README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Source code/src/data/
2222
2. **Add a new entry** by copying an existing object and updating its fields, or edit/remove existing entries as needed.
2323
- Each file contains an array of objects. Each object represents a person, event, or project.
2424
- Make sure to follow the structure of the existing objects (field names, types, etc.).
25+
- You should add images to 'code/src/public/media' and link the database to them.
2526

2627
3. **Save the file.**
2728

@@ -45,9 +46,8 @@ Open `peopleData.ts` and add a new object to the `peopleData` array:
4546

4647
## Tips
4748
- **Use unique IDs** for each entry.
48-
- **Image paths** should point to files in the `public/media/` or `public/lovable-uploads/` folders.
49-
- **No need to restart the dev server** if it's already running; just refresh the page to see changes.
49+
- **Image paths** should point to files in the `public/media/` folder. When typing the image path it will use 'public' as the source directory. So to point to media you only need to type '/media'
5050
- **Type safety:** If you make a typo or use the wrong field, TypeScript will show an error during build or in your editor.
5151

5252
## That's it!
53-
All data is managed through these files. No database or CMS is required—just edit, save, and build!
53+
All data is managed through these files. No database or CMS is required—just edit, save, and build!

0 commit comments

Comments
 (0)