File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,12 @@ jobs:
1818 build-deploy :
1919 runs-on : ubuntu-latest
2020 steps :
21+ - uses : actions/setup-node@v6.3.0
22+ node-version : 22.22.x
2123 - name : Checkout your repository using git
2224 uses : actions/checkout@v4
23- - name : Setup Node.js
24- uses : actions/setup-node@v4
25- with :
26- node-version : ' 22'
2725 - name : Install dependencies
28- run : npm ci
26+ run : npm run install
2927 - name : Build website
3028 run : npm run build
3129 - name : Deploy to Cloudflare Workers
Original file line number Diff line number Diff line change 1818 build-deploy :
1919 runs-on : ubuntu-latest
2020 steps :
21+ - uses : actions/setup-node@v6.3.0
22+ node-version : 22.22.x
2123 - name : Checkout your repository using git
2224 uses : actions/checkout@v4
25+ - name : Install dependencies
26+ run : npm run install
2327 - name : Build website
2428 run : npm run build
2529 - name : Deploy to Cloudflare Workers
Original file line number Diff line number Diff line change 11---
2+ import type { GetStaticPathsResult } from " astro" ;
23import ReferenceItemLayout from " @/src/layouts/ReferenceItemLayout.astro" ;
34import {
45 getCollectionInDefaultLocale ,
@@ -21,7 +22,16 @@ export async function getStaticPaths() {
2122 return relatedEntry .data .submodule === entry .data .submodule ;
2223 }),
2324 },
24- }));
25+ }))
26+ .reduce <GetStaticPathsResult >((acc , entry ) => {
27+ acc .push (entry );
28+ acc .push (Object .assign ({}, entry , {
29+ params: {
30+ id: entry .params .id .toLowerCase ()
31+ }
32+ }));
33+ return acc ;
34+ }, []);
2535}
2636
2737const { entry, relatedEntries } = Astro .props ;
You can’t perform that action at this time.
0 commit comments