From 49ddd7630242fe5eca35a891046dbdd8f00e30bb Mon Sep 17 00:00:00 2001 From: Valery Melou Date: Sun, 21 Jul 2024 04:19:54 +0100 Subject: [PATCH] chore: fix pre render --- .github/workflows/ci.yml | 16 ---------------- firebase.json | 20 -------------------- libs/blog/tasks/src/lib/executor.ts | 2 +- 3 files changed, 1 insertion(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1459e35..060e325 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,14 +36,6 @@ jobs: node-version: 20 cache: 'yarn' - - name: Restore NX Cache - id: nx-cache-restore - uses: actions/cache/restore@v4 - with: - path: | - .nx - key: ${{ runner.os }}-nx - - run: yarn install - run: npx nx affected --target=lint --parallel=3 - run: npx nx run-many --target=test --parallel=3 --code-coverage @@ -57,14 +49,6 @@ jobs: coverageLocations: | ${{github.workspace}}/coverage/lcov.info:lcov - - name: Save NX Cache - id: nx-cache-save - uses: actions/cache/save@v4 - with: - path: | - .nx - key: ${{ steps.nx-cache-restore.outputs.cache-primary-key }} - deploy: if: > (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || (github.event.pull_request.base.ref == 'develop' && github.event.pull_request.head.repo.full_name == github.repository)) diff --git a/firebase.json b/firebase.json index 07dcec5..7fd6226 100644 --- a/firebase.json +++ b/firebase.json @@ -3,26 +3,6 @@ "public": "dist/apps/website/browser", "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], "rewrites": [ - { - "source": "/blog", - "destination": "/blog/index.html" - }, - { - "source": "/blog/:post*", - "destination": "/blog/:post/index.html" - }, - { - "source": "/about", - "destination": "/about/index.html" - }, - { - "source": "/projects", - "destination": "/projects/index.html" - }, - { - "source": "/projects/**", - "destination": "/projects/index.html" - }, { "source": "**", "destination": "/index.html" diff --git a/libs/blog/tasks/src/lib/executor.ts b/libs/blog/tasks/src/lib/executor.ts index bd6cf5f..2bc587a 100644 --- a/libs/blog/tasks/src/lib/executor.ts +++ b/libs/blog/tasks/src/lib/executor.ts @@ -16,7 +16,7 @@ const runExecutor: PromiseExecutor = async (options) => { const entries = await cdaClient.getEntries(defaultQuery); const routes = entries.items.map( (entry) => - `/blog/${entry.sys.createdAt.split('T')[0]}/${entry.fields['slug']}`, + `/blog/${entry.sys.createdAt.split('T')[0]}-${entry.fields['slug']}`, ); const routesString = routes.join('\n');