stremio/apps/admin-ui/next.config.js
Jos Vooges | STH d53a4f9297 Make admin UI mobile-first with bottom nav and installable PWA support.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 02:11:40 +02:00

20 lines
611 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: process.env.DOCKER_BUILD === "1" ? "standalone" : undefined,
// API calls go through src/app/api/[...path] runtime proxy (not build-time rewrites)
headers: async () => [
{
source: "/sw.js",
headers: [
{ key: "Cache-Control", value: "public, max-age=0, must-revalidate" },
{ key: "Service-Worker-Allowed", value: "/" },
],
},
{
source: "/manifest.webmanifest",
headers: [{ key: "Content-Type", value: "application/manifest+json" }],
},
],
};
module.exports = nextConfig;