The environment variables are used to configure the application. They can be set in the .env file or directly in bash when running the application.
Remember that you have to rebuild and restart the app for the changes to take effect since environment variables in Next.js are embedded at build time.
By default, the /read/manifest/[base64url-encoded-manifest] route is disabled in production for security reasons. Environment variables are therefore provided to enable it, as well as to configure the allowed domains for fetching the publication.
Set to true to enable manifest route in production.
MANIFEST_ROUTE_FORCE_ENABLE=trueComma-separated list of allowed domains for manifest URLs in production.
MANIFEST_ALLOWED_DOMAINS="publication-server.readium.org"You can also use * to allow all domains.
By default, the assets are fetched from the same domain as the application. An environment variable is therefore provided to configure the base path if needed.
Set the base path for assets (e.g., CDN URL or subdirectory).
ASSET_PREFIX="https://cdn.example.com"