diff --git a/.vscode/app.code-snippets b/.vscode/app.code-snippets index 2111199..2d5c37d 100644 --- a/.vscode/app.code-snippets +++ b/.vscode/app.code-snippets @@ -19,7 +19,7 @@ "\t", "\t\t{{ t(\"${1:Name}Page.title\") }}", "\t", - "", - ], - }, + "" + ] + } } diff --git a/composables/use-page-metadata.ts b/composables/use-page-metadata.ts index 4fbaa9c..6c32c6f 100644 --- a/composables/use-page-metadata.ts +++ b/composables/use-page-metadata.ts @@ -12,7 +12,7 @@ export function usePageMetadata(params: UsePageMetadataParams): void { ? [ { name: "description", content: params.description }, { property: "og:description", content: params.description }, - ] + ] : []), ], }); diff --git a/e2e/tests/app/i18n.test.ts b/e2e/tests/app/i18n.test.ts index 65c4bbf..1a00ce7 100644 --- a/e2e/tests/app/i18n.test.ts +++ b/e2e/tests/app/i18n.test.ts @@ -87,9 +87,15 @@ test.describe("i18n", () => { expect(links).toEqual( expect.arrayContaining([ - ``, - ``, - ``, + ``, + ``, + ``, ]), ); } diff --git a/server/routes/robots.txt.get.ts b/server/routes/robots.txt.get.ts index 6cb6cc7..76c204c 100644 --- a/server/routes/robots.txt.get.ts +++ b/server/routes/robots.txt.get.ts @@ -11,12 +11,12 @@ const config = isIndexable Allow: "/", Host: baseUrl, Sitemap: String(createUrl({ baseUrl, pathname: "sitemap.xml" })), - } + } : { "User-Agent": "*", Disallow: "/", Host: baseUrl, - }; + }; const robots = Object.entries(config) .map(([key, value]) => {