From 7671b0d7bc4ff3ed378139382629f2ed9d4629d1 Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 15 Nov 2024 17:24:47 -0600 Subject: [PATCH] Added lint to build --- .gitea/workflows/build.yml | 2 ++ app/sitemap.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 121e2d9..0c4bcc8 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -40,6 +40,8 @@ jobs: ${{ runner.os }}-yarn- - name: Update node modules run: yarn + - name: Lint + run: yarn lint - name: Build app and export to ./out run: EXPORT=1 UNOPTIMIZED=1 yarn build - name: Set up Docker Buildx diff --git a/app/sitemap.ts b/app/sitemap.ts index 64738da..88800c3 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -14,7 +14,7 @@ export default function sitemap(): MetadataRoute.Sitemap { lastModified: post.lastmod || post.date, })) - const routes = ['', 'blog','likes', 'projects', 'tags'].map((route) => ({ + const routes = ['', 'blog', 'likes', 'projects', 'tags'].map((route) => ({ url: `${siteUrl}/${route}`, lastModified: new Date().toISOString().split('T')[0], }))