mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
refactor: Enable lazy loading for images in BlogPostUtil and remove unnecessary whitespace in Copilot/Init.ts
This commit is contained in:
parent
94eaab9ca4
commit
eac7134630
@ -111,9 +111,9 @@ export default class BlogPostUtil {
|
||||
public static async getBlogPost(fileName: string): Promise<BlogPost | null> {
|
||||
let blogPost: BlogPost | null = this.getBlogPostFromCache(fileName);
|
||||
|
||||
// if (blogPost) {
|
||||
// return Promise.resolve(blogPost);
|
||||
// }
|
||||
if (blogPost) {
|
||||
return Promise.resolve(blogPost);
|
||||
}
|
||||
|
||||
blogPost = await this.getBlogPostFromGitHub(fileName);
|
||||
|
||||
|
@ -26,6 +26,7 @@ import ProcessUtil from "./Utils/Process";
|
||||
let currentFixCount: number = 1;
|
||||
|
||||
const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
|
||||
// check if copilot is disabled.
|
||||
if (GetIsCopilotDisabled()) {
|
||||
logger.info("Copilot is disabled. Exiting.");
|
||||
|
@ -314,10 +314,7 @@ services:
|
||||
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||
- /usr/src/app/node_modules/
|
||||
- ./Common:/usr/src/Common
|
||||
|
||||
- /usr/src/Common/node_modules/
|
||||
|
||||
|
||||
ports:
|
||||
- '9985:9229' # Debugging port.
|
||||
extends:
|
||||
|
Loading…
Reference in New Issue
Block a user