-
-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathnitro.config.ts
More file actions
30 lines (27 loc) · 847 Bytes
/
Copy pathnitro.config.ts
File metadata and controls
30 lines (27 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { auditRedactPreset, type RedactConfig } from "evlog";
import evlog from "evlog/nitro/v3";
import { defineConfig } from "nitro";
const redact = {
...auditRedactPreset,
paths: [...(auditRedactPreset.paths ?? []), "cookies"],
} satisfies RedactConfig;
export default defineConfig({
experimental: {
asyncContext: true,
},
modules: [
evlog({
env: { service: "web" },
redact,
}),
],
/**
* TODO(security): Review production security headers before deployment.
*
* App-level policies such as CSP, Permissions-Policy, X-Frame-Options /
* frame-ancestors, COOP, Referrer-Policy, and X-Content-Type-Options are
* intentionally not configured by the Cove Stack template because safe values
* depend on the app's embedding requirements, browser APIs, integrations, and
* content.
*/
});