Development#12
Merged
Merged
Conversation
- Replace Node.js createServer/IncomingMessage with a Web API
handleRequest(Request, ApiEnv): Response fetch handler
- Add src/worker.ts — Workers entry point (export default { fetch })
- Keep src/main.ts as a thin Node.js dev shim for `nx serve api`
- Add wrangler.toml with nodejs_compat flag and production/preview envs
- Add build:worker (ESM bundle), deploy, deploy:preview, cf:dev targets
to project.json
- Rename ApiEnv fields to UPPER_CASE matching Cloudflare secret bindings
- Replace Buffer/node:buffer with btoa/Uint8Array (Workers-compatible)
- Fix tsconfig.spec.json: commonjs module for Jest, include src/**/*.ts
- Add moduleNameMapper in jest.config.cts to rewrite .js → no-ext
so ts-jest resolves .ts sources under commonjs module resolution
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Cover health endpoint, OPTIONS preflight, auth guard on all 15 protected
routes (no token + bad prefix → 401), CORS_ORIGIN fallback to *, error
response shape { error: string }, and content-type header. Tests use the
Web API Request/Response directly via handleRequest — no HTTP server
required, no external mocks.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- docs/en/reference/api-endpoints.md — full reference for all 20 endpoints with method, description, request body, and response shape - docs/tr/reference/api-endpoints.md — Turkish translation of above - README.md — add Deploy to Cloudflare section: build:worker command, wrangler secret put for each binding, nx deploy/deploy:preview targets, Cloudflare CI/CD form values, local wrangler dev instructions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Change outDir from ./dist to ../../dist/apps/web so the web build output lands under the workspace dist/ tree alongside other apps. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
minimalblock | c844281 | May 19 2026, 01:56 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.