mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59: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> {
|
public static async getBlogPost(fileName: string): Promise<BlogPost | null> {
|
||||||
let blogPost: BlogPost | null = this.getBlogPostFromCache(fileName);
|
let blogPost: BlogPost | null = this.getBlogPostFromCache(fileName);
|
||||||
|
|
||||||
// if (blogPost) {
|
if (blogPost) {
|
||||||
// return Promise.resolve(blogPost);
|
return Promise.resolve(blogPost);
|
||||||
// }
|
}
|
||||||
|
|
||||||
blogPost = await this.getBlogPostFromGitHub(fileName);
|
blogPost = await this.getBlogPostFromGitHub(fileName);
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ import ProcessUtil from "./Utils/Process";
|
|||||||
let currentFixCount: number = 1;
|
let currentFixCount: number = 1;
|
||||||
|
|
||||||
const init: PromiseVoidFunction = async (): Promise<void> => {
|
const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||||
|
|
||||||
// check if copilot is disabled.
|
// check if copilot is disabled.
|
||||||
if (GetIsCopilotDisabled()) {
|
if (GetIsCopilotDisabled()) {
|
||||||
logger.info("Copilot is disabled. Exiting.");
|
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
|
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
||||||
- /usr/src/app/node_modules/
|
- /usr/src/app/node_modules/
|
||||||
- ./Common:/usr/src/Common
|
- ./Common:/usr/src/Common
|
||||||
|
|
||||||
- /usr/src/Common/node_modules/
|
- /usr/src/Common/node_modules/
|
||||||
|
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- '9985:9229' # Debugging port.
|
- '9985:9229' # Debugging port.
|
||||||
extends:
|
extends:
|
||||||
|
Loading…
Reference in New Issue
Block a user