-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
28 lines (26 loc) · 1.07 KB
/
Copy pathnext.config.mjs
File metadata and controls
28 lines (26 loc) · 1.07 KB
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
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'images.unsplash.com' },
{ protocol: 'https', hostname: 'plus.unsplash.com' },
],
},
// Data files that are read at runtime but never imported.
//
// Output tracing works from the import graph, so anything opened with a
// `readFileSync(join(process.cwd(), …))` is invisible to it and gets left
// behind at build time. Two things here fall into that hole, and both fail
// quietly rather than loudly:
//
// the seeded SQLite database, without which every request 500s
// (see src/lib/db.ts); and
// the recorded model responses, without which the deployed demo still
// works but silently stops replaying real model output — every clip
// falling back to the honest "no vision pass ran" entry. That is the
// worse failure of the two, because nothing about it looks broken.
outputFileTracingIncludes: {
'/**': ['./prisma/dev.db', './src/lib/ai/recorded/*.json'],
},
}
export default nextConfig