Skip to content

Commit 8aa4282

Browse files
committed
feat: load dynamic configuration
1 parent c5875a7 commit 8aa4282

60 files changed

Lines changed: 876 additions & 560 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/quality.yml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,37 @@ concurrency:
1010
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1111

1212
jobs:
13-
typescript:
14-
name: typescript
13+
biome:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
with:
21+
persist-credentials: false
22+
- name: Setup Biome
23+
uses: biomejs/setup-biome@v2
24+
with:
25+
version: latest
26+
- name: Run Biome
27+
run: biome ci
28+
29+
tests:
30+
name: unit tests
1531
runs-on: ubuntu-latest
16-
timeout-minutes: 10
1732
steps:
18-
- name: checkout
19-
uses: actions/checkout@v3
33+
- name: Checkout
34+
uses: actions/checkout@v5
35+
with:
36+
persist-credentials: false
2037
- name: Install
2138
uses: ./.github/composite-actions/install
22-
- name: lint
23-
run: pnpm -r lint
24-
- name: type-check
25-
run: pnpm -r type-check
26-
- name: prettier
27-
run: pnpm prettier -c .
28-
- name: build
29-
run: pnpm -r build
30-
- name: test
39+
- name: Run tests
3140
run: pnpm -r test
3241

3342
playwright:
34-
name: playwright
43+
name: e2e tests
3544
runs-on: ubuntu-latest
3645
timeout-minutes: 10
3746
strategy:
@@ -41,14 +50,14 @@ jobs:
4150
- 'test:e2e:production'
4251
- 'test:e2e:development'
4352
steps:
44-
- name: checkout
45-
uses: actions/checkout@v3
53+
- name: Checkout
54+
uses: actions/checkout@v5
4655
- name: Install
4756
uses: ./.github/composite-actions/install
48-
- name: get playwright version
57+
- name: Get Playwright version
4958
id: pw
5059
run: echo "version=$(cat apps/nextjs/package.json | jq -r '.devDependencies."@playwright/test"')" >> $GITHUB_OUTPUT
51-
- name: install playwright
60+
- name: Install Playwright
5261
run: pnpx playwright@${{ steps.pw.outputs.version }} install
53-
- name: test
62+
- name: Run tests
5463
run: pnpm -r ${{ matrix.test }}

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

apps/astro/src/pages/blog/[...slug].astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import Layout from '../../layouts/Base.astro';
44
55
export async function getStaticPaths() {
66
const blogEntries = await getCollection('blog');
7-
return blogEntries.map(entry => ({
8-
params: { slug: entry.slug }, props: { entry },
7+
return blogEntries.map((entry) => ({
8+
params: { slug: entry.slug },
9+
props: { entry },
910
}));
1011
}
1112

apps/nextjs-15/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { Analytics } from '@vercel/analytics/next';
12
import type { Metadata } from 'next';
23
import localFont from 'next/font/local';
3-
import { Analytics } from '@vercel/analytics/next';
44
import './globals.css';
55

66
const geistSans = localFont({

apps/nextjs-15/src/app/page.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@
6868
padding: 0 20px;
6969
border: none;
7070
border: 1px solid transparent;
71-
transition: background 0.2s, color 0.2s, border-color 0.2s;
71+
transition:
72+
background 0.2s,
73+
color 0.2s,
74+
border-color 0.2s;
7275
cursor: pointer;
7376
display: flex;
7477
align-items: center;

apps/nextjs/app/api/edge-no-context/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('app API edge-no-context route', () => {
1010
expect(response.status).toBe(200);
1111
expect(log).toHaveBeenCalledTimes(1);
1212
expect(log).toHaveBeenCalledWith(
13-
'[Vercel Web Analytics] Track "Edge Event" with data {"data":"edge","router":"app","manual":true}'
13+
'[Vercel Web Analytics] Track "Edge Event" with data {"data":"edge","router":"app","manual":true}',
1414
);
1515
});
1616
});

apps/nextjs/app/api/edge-no-context/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function handler(request: Request) {
1212
},
1313
{
1414
request,
15-
}
15+
},
1616
);
1717

1818
return new Response('OK');

apps/nextjs/app/api/edge/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('app API edge route', () => {
1010
expect(response.status).toBe(200);
1111
expect(log).toHaveBeenCalledTimes(1);
1212
expect(log).toHaveBeenCalledWith(
13-
'[Vercel Web Analytics] Track "Edge Event" with data {"data":"edge","router":"app"}'
13+
'[Vercel Web Analytics] Track "Edge Event" with data {"data":"edge","router":"app"}',
1414
);
1515
});
1616
});

apps/nextjs/app/api/serverless/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('app API serverless route', () => {
1010
expect(response.status).toBe(200);
1111
expect(log).toHaveBeenCalledTimes(1);
1212
expect(log).toHaveBeenCalledWith(
13-
'[Vercel Web Analytics] Track "Serverless Event" with data {"data":"serverless","router":"app"}'
13+
'[Vercel Web Analytics] Track "Serverless Event" with data {"data":"serverless","router":"app"}',
1414
);
1515
});
1616
});

0 commit comments

Comments
 (0)