From b488c984f5de78a35444f91cce09345f41344a14 Mon Sep 17 00:00:00 2001 From: ansidev Date: Mon, 26 Feb 2024 19:27:37 +0700 Subject: [PATCH 1/3] chore: add .env.local.exapmple --- .env.local.example | 1 + 1 file changed, 1 insertion(+) create mode 100644 .env.local.example diff --git a/.env.local.example b/.env.local.example new file mode 100644 index 00000000..9be9120e --- /dev/null +++ b/.env.local.example @@ -0,0 +1 @@ +ASTRO_BASE_URL=http://localhost:4321 From 11da30a8671b0fd8b6cc13d912f78a6b66a02287 Mon Sep 17 00:00:00 2001 From: ansidev Date: Mon, 26 Feb 2024 20:42:05 +0700 Subject: [PATCH 2/3] fix: ts check errors --- src/cmd/leetcode.ts | 2 +- src/components/Disqus.astro | 2 +- src/components/analytics/Swetrix.astro | 4 ++-- src/env.d.ts | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cmd/leetcode.ts b/src/cmd/leetcode.ts index 5e1bdbdd..661f74b4 100644 --- a/src/cmd/leetcode.ts +++ b/src/cmd/leetcode.ts @@ -117,7 +117,7 @@ const generateNewPost: () => void = async () => { const templateData: LeetCodePostFrontMatter = { title, slug, keywords, author, pubDate, difficulty, tags } - const output = await render('leetcode.md', templateData) + const output = render('leetcode.md', templateData) writeToFile(path.join(__dirname, '../content/leetcode-solutions', `${slug}.md`), output) } diff --git a/src/components/Disqus.astro b/src/components/Disqus.astro index 8f2b7207..a41b06f9 100644 --- a/src/components/Disqus.astro +++ b/src/components/Disqus.astro @@ -9,7 +9,7 @@ const { siteId, pageURL, pageIdentifier } = Astro.props ---
- - +