mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-10 04:22:06 +00:00
fix search api imports, move unicornProfilePicMap to json fetch
This commit is contained in:
@@ -40,13 +40,6 @@ export const createIndex = async () => {
|
||||
};
|
||||
|
||||
createIndex().then((index) => {
|
||||
const js = `const index = {
|
||||
index: ${JSON.stringify(index)},
|
||||
posts: ${JSON.stringify(posts)}
|
||||
}
|
||||
|
||||
export default index;
|
||||
`;
|
||||
|
||||
fs.writeFileSync(path.resolve(process.cwd(), "./public/searchIndex.js"), js);
|
||||
const json = JSON.stringify({ index, posts });
|
||||
fs.writeFileSync(path.resolve(process.cwd(), "./api/searchIndex.json"), json);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user