Fix NKJV directory path in backend - was looking in ../ instead of ../../
This commit is contained in:
@@ -34,7 +34,7 @@ app.use(express.static(path.join(__dirname, '../../frontend/build')));
|
|||||||
|
|
||||||
// Bible data directories
|
// Bible data directories
|
||||||
const ESV_DATA_DIR = path.join(__dirname, '../../bible-data'); // ESV from mdbible
|
const ESV_DATA_DIR = path.join(__dirname, '../../bible-data'); // ESV from mdbible
|
||||||
const NKJV_DATA_DIR = path.join(__dirname, '../NKJV'); // NKJV local files
|
const NKJV_DATA_DIR = path.join(__dirname, '../../NKJV'); // NKJV local files
|
||||||
|
|
||||||
// Initialize search engines for each version
|
// Initialize search engines for each version
|
||||||
const esvSearchEngine = ESV_DATA_DIR ? new BibleSearchEngine(ESV_DATA_DIR) : null;
|
const esvSearchEngine = ESV_DATA_DIR ? new BibleSearchEngine(ESV_DATA_DIR) : null;
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ function App() {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (loading) {
|
if (loading || !books) {
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen flex items-center justify-center">
|
<div className="min-h-screen flex items-center justify-center">
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user