Skip to content

Commit e670fcd

Browse files
committed
Merge remote-tracking branch 'origin/master' into fohte/runok
2 parents 37f470c + e9bcd8c commit e670fcd

129 files changed

Lines changed: 17989 additions & 3428 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.lockb binary diff=lockb
2+
*.pen linguist-generated -diff

.github/workflows/deploy.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,25 @@ jobs:
4646
- name: Install dependencies
4747
run: bun install --frozen-lockfile
4848

49-
- name: Cache Next.js build
49+
- name: Cache Astro build
5050
uses: actions/cache@v4
5151
with:
52-
path: |
53-
.next/cache
54-
.contentlayer/.cache
55-
key: ${{ runner.os }}-nextjs-${{ hashFiles('bun.lock') }}-${{ hashFiles('src/**', 'contents/**', 'contentlayer.config.ts', 'next.config.js', '!node_modules/**/*') }}
52+
path: .astro
53+
key: ${{ runner.os }}-astro-${{ hashFiles('bun.lock') }}-${{ hashFiles('src/**', 'astro.config.mjs', '!node_modules/**/*') }}
5654
restore-keys: |
57-
${{ runner.os }}-nextjs-${{ hashFiles('bun.lock') }}-
58-
${{ runner.os }}-nextjs-
55+
${{ runner.os }}-astro-${{ hashFiles('bun.lock') }}-
56+
${{ runner.os }}-astro-
5957
6058
- name: Build
6159
run: bun run build
62-
env:
63-
NEXT_PUBLIC_APP_ENV: ${{ github.ref == 'refs/heads/master' && 'production' || 'preview' }}
6460

6561
- name: Deploy to Cloudflare Pages
6662
id: cloudflare-deployment
6763
uses: cloudflare/wrangler-action@v3
6864
with:
6965
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
7066
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
71-
command: pages deploy ./out --project-name=fohte-net
67+
command: pages deploy ./dist --project-name=fohte-net
7268

7369
- name: Extract deployment URLs
7470
if: github.ref != 'refs/heads/master'

.github/workflows/test.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ jobs:
4040
4141
- run: bun install --frozen-lockfile
4242

43-
- name: Install Playwright browsers
44-
run: bunx playwright install chromium
45-
46-
- name: Cache Playwright browsers
47-
uses: actions/cache@v4
48-
with:
49-
path: ~/.cache/ms-playwright
50-
key: ${{ runner.os }}-playwright-${{ hashFiles('bun.lock') }}
51-
5243
- name: Cache pre-commit
5344
uses: actions/cache@v4
5445
with:
@@ -72,11 +63,5 @@ jobs:
7263
workflow: deny
7364
github_token: ${{ steps.app-token.outputs.token }}
7465

75-
- name: Run tests (without E2E)
66+
- name: Run tests
7667
run: bun run test
77-
78-
- name: Run Percy E2E tests
79-
run: bun run test:e2e
80-
env:
81-
NEXT_PUBLIC_APP_ENV: test
82-
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
node_modules
22
.next
3+
dist/
4+
.astro/
35

46
# Local Netlify folder
57
.netlify
68

7-
# Ignore next-mdx-enhanced cache directory
8-
.mdx-data
9-
10-
# contentlayer build output
11-
.contentlayer
12-
139
tsconfig.tsbuildinfo
1410

1511
out/

.prettierrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ trailingComma: all
22
semi: false
33
singleQuote: true
44
proseWrap: preserve
5+
plugins:
6+
- prettier-plugin-astro
7+
# prettier-plugin-tailwindcss must be loaded last
8+
# ref: https://github.com/tailwindlabs/prettier-plugin-tailwindcss?tab=readme-ov-file#compatibility-with-other-prettier-plugins
9+
- prettier-plugin-tailwindcss

astro.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import mdx from '@astrojs/mdx'
2+
import react from '@astrojs/react'
3+
import tailwindcss from '@tailwindcss/vite'
4+
import { defineConfig } from 'astro/config'
5+
import embeds from 'astro-embed/integration'
6+
import icon from 'astro-icon'
7+
import remarkBreaks from 'remark-breaks'
8+
import remarkGfm from 'remark-gfm'
9+
import remarkUnwrapImages from 'remark-unwrap-images'
10+
11+
export default defineConfig({
12+
site: 'https://fohte.net',
13+
integrations: [
14+
react(),
15+
embeds({
16+
services: {
17+
LinkPreview: false,
18+
},
19+
}),
20+
mdx(),
21+
icon(),
22+
],
23+
markdown: {
24+
remarkPlugins: [remarkGfm, remarkBreaks, remarkUnwrapImages],
25+
syntaxHighlight: false,
26+
},
27+
vite: {
28+
plugins: [tailwindcss()],
29+
},
30+
})

bun.lock

Lines changed: 1122 additions & 1251 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contentlayer.config.ts

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

0 commit comments

Comments
 (0)