This assumes that you have audiobookshelf locally.
- git clone https://github.com/audiobookshelf/audiobookshelf-client-react.git
- install dependencies:
cd audiobookshelf-client-react && npm ci
- Start the audiobookshelf server with the
REACT_CLIENT_PATH
env variable set to this project path. Or in thedev.js
file addReactClientPath
to config. - In the audiobookshelf server repo run with
npm run dev
as usual. This will serve the NextJS app using HMR.
// example dev.js file in audiobookshelf
const Path = require('path')
module.exports.config = {
ConfigPath: Path.resolve('config'),
MetadataPath: Path.resolve('metadata'),
ReactClientPath: Path.resolve('../audiobookshelf-client-react')
}
npm run build
this NextJS app- Start the audiobookshelf server with
npm run start-dev
(uses the dev.js file w/ production)