Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ While [the official CodePush Standalone CLI](https://github.com/microsoft/code-p
5. **Deploy the Backend:**
```bash
cd apps/server
pnpm wrangler publish
pnpm wrangler deploy --env production
```
6. **Run the Admin UI:**
```bash
Expand Down
1 change: 1 addition & 0 deletions apps/server/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
4 changes: 2 additions & 2 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "code-push-cloudflare-workers",
"scripts": {
"dev": "wrangler dev --env local",
"publish": "wrangler publish --env production",
"publish": "wrangler deploy --env production",
"generate": "drizzle-kit generate",
"secrets:list:production": "wrangler secret list --env production",
"list:local": "wrangler d1 migrations list DB --local",
Expand Down Expand Up @@ -36,6 +36,6 @@
"@types/semver": "^7.5.8",
"miniflare": "^3.20241230.2",
"vitest": "^2.1.8",
"wrangler": "^3.103.1"
"wrangler": "^4.150.0"
}
}
2 changes: 1 addition & 1 deletion apps/server/src/middleware/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const logging = (): MiddlewareHandler => {
const requestLog: LogEntry = {
timestamp: new Date().toISOString(),
method: c.req.method,
url: c.req.url,
url: c.req.path,
};

console.log(
Expand Down
15 changes: 14 additions & 1 deletion apps/server/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,17 @@ GOOGLE_ALLOWED_DOMAIN="yplabs.kr"
R2_BUCKET_NAME="code-push-storage"
ACCOUNT_ID="3ed9862a49fe75464126e11a462fd26e"
AWS_REGION = "ap-northeast-2"
AWS_S3_BUCKET_NAME = "code-push-prod"
AWS_S3_BUCKET_NAME = "code-push-prod"

[env.production.observability]
enabled = true

[env.production.observability.logs]
enabled = true
destinations = ["newrelic-logs"]

[env.production.observability.traces]
enabled = true
destinations = ["newrelic-traces"]
head_sampling_rate = 0.1
persist = false
Loading
Loading