Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.15 KB

static-assets.md

File metadata and controls

21 lines (15 loc) · 1.15 KB

Static Assets

Your storefront will probably need to include static assets such as, logo images, timezone/internationalization data, favicons, etc..

Handling static assets

The starterkit follows the approach outlined in the Next.JS documentation keeping all static assets in the /src/static/ folder.

Images Logos, placeholders and similar images are placed in the /static/images/ directory.

Favicons Favicons are placed in the /static/favicons/ directory.

Static Data Locales, timezones, currency codes and similar data stuctures are placed in the /static/data directory.

Fonts Out of the box the starterkit leverages fonts.google.com for font delivery. You could however add custom fonts to a /static/fonts/ directory if needed.

Icons We feel icons are best handled as SVGs within React components and not as a static asset. See MDI and Reaction Design System's svg directory for more info.