docs: tighten README quick start and stale comments
- Lead with purpose and exact local/CI commands. - Remove local absolute paths, stale auth notes and unverified claims. - Keep comments to the reason or invariant they protect.
This commit is contained in:
1 parent
dbb7a009a7
commit
66b80a62fb
14 files changed
+82
-84
No files matched your search
@@ -1,12 +1,8 @@
|
||||
import { apiBaseUrl, isMockMode } from '../utils/api'
|
||||
|
||||
/**
|
||||
* Same-origin SSE proxy. The browser never talks to Go directly, so the
|
||||
* Cloudflare/K8s CORS surface stays closed and the stream can be cached or
|
||||
* authenticated at one edge only.
|
||||
*
|
||||
* h3's proxyRequest pipes response chunks as they arrive (it does not await
|
||||
* the full body), which preserves the 15 s heartbeat and `retry: 3000`.
|
||||
* Same-origin SSE proxy: the browser talks only to Nitro, so CORS stays closed.
|
||||
* proxyRequest forwards chunks as they arrive, preserving heartbeats and retry hints.
|
||||
*/
|
||||
export default defineEventHandler(async (event) => {
|
||||
if (isMockMode() || process.env.NUXT_DISABLE_SSE === '1') {
|
||||
|
||||
@@ -35,8 +35,7 @@ export default defineEventHandler(async (event) => {
|
||||
}
|
||||
}
|
||||
|
||||
// Stream the multipart CSV to Go unchanged. The control credentials are
|
||||
// attached by the Nitro process and never reach the browser bundle.
|
||||
// Forward the raw multipart CSV to Go; control credentials stay in this process.
|
||||
const contentType = getRequestHeader(event, 'content-type') ?? ''
|
||||
if (!contentType) {
|
||||
throw createError({
|
||||
|
||||
Reference in new issue
Block a user