Adapter local-json
is used to work with local JSON
files.
.
└── locales
├── layout.json
└── pages
├── index.json
├── page-1.json
└── top-page
├── index.json
└── sub-page-json
Path: ./locales/pages
The directory 'pages' defines the route structure.
Each file contains a route object from the 📖 Adapter Docs
Path: ./locales/layout.json
Contains all data required in the layout layer.
Example: Header, Footer
Paths to the locales
directory can be customized in the config.js
of the adapter.