Skip to content

Commit

Permalink
chore: fix pre render
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 21, 2024
1 parent 2c7b153 commit 49ddd76
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down
20 changes: 0 additions & 20 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion libs/blog/tasks/src/lib/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const runExecutor: PromiseExecutor<RoutesExecutorSchema> = 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');

Expand Down

0 comments on commit 49ddd76

Please sign in to comment.