26 lines
798 B
TypeScript
26 lines
798 B
TypeScript
import path from "node:path"
|
|
import type { NextConfig } from "next"
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
outputFileTracingRoot: path.join(__dirname, "../../"),
|
|
experimental: {
|
|
// Failed navigations wait for the connection instead of reloading the
|
|
// page, which would show the browser's offline page and stop playback.
|
|
useOffline: true,
|
|
// App pages render their data from the client cache, so reusing a visited
|
|
// page's server payload is safe and skips a round trip on revisits.
|
|
staleTimes: {
|
|
dynamic: 300,
|
|
},
|
|
},
|
|
images: {
|
|
minimumCacheTTL: 60,
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: "attachment",
|
|
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|