turbo
turbo copied to clipboard
Document best practices for sharing static assets across apps / packages
Describe the feature you'd like to request
It is not clear what the recommended best practices are for sharing static assets across apps.
Current examples show duplication of shared assets - e.g. favicon is duplicated in the public folder across multiple next apps. What is the ideal structure for a monorepo with: shared images, font files, etc.
Describe the solution you'd like
Documentation should include recommended best practices for packaging shared assets:
- How should users structure their monorepo?
- How to handle special file types?
Describe alternatives you've considered
- Manually copy shared assets via script to public folder of each app
- Create package containing static files that can be imported by apps (but running into some issues with CSS imports and file URLs pointing to package)