Skip to content

Commit 0a9b2e0

Browse files
committed
📘 doc: add opentelemetry integration setup for production
1 parent 6f233f7 commit 0a9b2e0

File tree

7 files changed

+286
-171
lines changed

7 files changed

+286
-171
lines changed
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
name: Deploy to Cloudflare Pages
1+
# name: Deploy to Cloudflare Pages
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
77

8-
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
name: Deploy
12-
steps:
13-
- uses: actions/checkout@v4
14-
with:
15-
fetch-depth: 0
16-
- uses: oven-sh/setup-bun@v2
17-
with:
18-
bun-version: latest
19-
- run: bun install
20-
- run: bun run build
21-
env:
22-
NODE_ENV: production
23-
GITHUB_TOKEN: ${{ secrets.SALTYAOM_GITHUB_TOKEN }}
24-
NODE_OPTIONS: --max-old-space-size=8192
25-
- name: Deploy
26-
uses: cloudflare/wrangler-action@v3
27-
with:
28-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30-
command: pages deploy docs/.vitepress/dist --project-name=elysia-doc
31-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
32-
packageManager: bun
33-
fetch-depth: 0
34-
env:
35-
NODE_OPTIONS: --max-old-space-size=8192
36-
NODE_VERSION: 22.14.0
37-
GITHUB_TOKEN: ${{ secrets.SALTYAOM_GITHUB_TOKEN }}
38-
- name: Deploy
39-
env:
40-
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
41-
run: echo $DEPLOYMENT_URL
8+
# jobs:
9+
# deploy:
10+
# runs-on: ubuntu-latest
11+
# name: Deploy
12+
# steps:
13+
# - uses: actions/checkout@v4
14+
# with:
15+
# fetch-depth: 0
16+
# - uses: oven-sh/setup-bun@v2
17+
# with:
18+
# bun-version: latest
19+
# - run: bun install
20+
# - run: bun run build
21+
# env:
22+
# NODE_ENV: production
23+
# GITHUB_TOKEN: ${{ secrets.SALTYAOM_GITHUB_TOKEN }}
24+
# NODE_OPTIONS: --max-old-space-size=8192
25+
# - name: Deploy
26+
# uses: cloudflare/wrangler-action@v3
27+
# with:
28+
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30+
# command: pages deploy docs/.vitepress/dist --project-name=elysia-doc
31+
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
32+
# packageManager: bun
33+
# fetch-depth: 0
34+
# env:
35+
# NODE_OPTIONS: --max-old-space-size=8192
36+
# NODE_VERSION: 22.14.0
37+
# GITHUB_TOKEN: ${{ secrets.SALTYAOM_GITHUB_TOKEN }}
38+
# - name: Deploy
39+
# env:
40+
# DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
41+
# run: echo $DEPLOYMENT_URL

docs/.vitepress/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ export default defineConfig({
259259
text: 'Configuration',
260260
link: '/patterns/configuration'
261261
},
262+
{
263+
text: "Deploy to Production",
264+
link: "/patterns/deploy",
265+
},
262266
{
263267
text: 'Type',
264268
link: '/patterns/type'

0 commit comments

Comments
 (0)