Skip to content

Commit 33bf49d

Browse files
committed
Set printWidth wider [ci skip]
1 parent e2f1dee commit 33bf49d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

middleware/.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"printWidth": 132
3+
}

middleware/redirects.global.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
const zennBlogUrl = () => "https://zenn.dev/p/wed_engineering";
2-
const zennArticleUrl = (slug) =>
3-
new URL(slug, "https://zenn.dev/wed_engineering/articles/").toString();
2+
const zennArticleUrl = (slug) => new URL(slug, "https://zenn.dev/wed_engineering/articles/").toString();
43

54
const redirects = {
65
// "" => zennBlogUrl(),
76
// "2018-19-tech-timeline": zennArticleUrl(""),
87
// "2020-tech-timeline": zennArticleUrl(""),
98
// "2023-gig": zennArticleUrl(""),
109
// "20231116-log-analytics-using-ai": zennArticleUrl(""),
11-
"20231121-executor-meets-gcsfuse": zennArticleUrl(
12-
"20231121-executor-meets-gcsfuse",
13-
),
10+
"20231121-executor-meets-gcsfuse": zennArticleUrl("20231121-executor-meets-gcsfuse"),
1411
"20231128-ruby-wasm": zennArticleUrl("use-ruby-wasm-hook"),
1512
// "20231222-my-3month-internship-record": zennArticleUrl(""),
1613
"20240127-unoptimized-next-image": zennArticleUrl("next-image-unoptimized"),
@@ -28,13 +25,12 @@ const redirects = {
2825
// "neovim-clean-config": zennArticleUrl(""),
2926
// "neovim-like-a-vscode": zennArticleUrl(""),
3027
"start-CloudComposer": zennArticleUrl("ebdd6858394baf"),
31-
// "wed-front-frameworks-2021": zennArticleUrl(""1),
28+
// "wed-front-frameworks-2021": zennArticleUrl(""),
3229
};
3330

3431
export default defineNuxtRouteMiddleware((to) => {
3532
const path = to.path.replace(/^\/|\/?$/g, "");
3633
const url = redirects[path];
3734

38-
if (url !== undefined)
39-
return navigateTo(url, { external: true, redirectCode: 301 });
35+
if (url !== undefined) return navigateTo(url, { external: true, redirectCode: 301 });
4036
});

0 commit comments

Comments
 (0)