const withFlowbiteReact = require("flowbite-react/plugin/nextjs"); /** @type {import('next').NextConfig} */ const NextConfig = { output: "standalone", reactStrictMode: false, images: { unoptimized: true, }, env: { NEXT_PUBLIC_KODIK_PARSER_URL: process.env.NEXT_PUBLIC_KODIK_PARSER_URL, NEXT_PUBLIC_ANILIBRIA_PARSER_URL: process.env.NEXT_PUBLIC_ANILIBRIA_PARSER_URL, NEXT_PUBLIC_SIBNET_PARSER_URL: process.env.NEXT_PUBLIC_SIBNET_PARSER_URL, }, async headers() { return [ { source: "/bookmarks/:slug*", headers: [ { key: "Cache-Control", value: "s-maxage=2592000, stale-while-revalidate=86400", }, ], }, { source: "/collection/:slug*", headers: [ { key: "Cache-Control", value: "s-maxage=2592000, stale-while-revalidate=86400", }, ], }, { source: "/home/:slug*", headers: [ { key: "Cache-Control", value: "s-maxage=2592000, stale-while-revalidate=86400", }, ], }, { source: "/profile/:slug*", headers: [ { key: "Cache-Control", value: "s-maxage=2592000, stale-while-revalidate=86400", }, ], }, { source: "/release/:slug*", headers: [ { key: "Cache-Control", value: "s-maxage=2592000, stale-while-revalidate=86400", }, ], }, { source: "/related/:slug*", headers: [ { key: "Cache-Control", value: "s-maxage=2592000, stale-while-revalidate=86400", }, ], }, { source: "/search", headers: [ { key: "Cache-Control", value: "s-maxage=2592000, stale-while-revalidate=86400", }, ], }, ]; }, }; const config = withFlowbiteReact(NextConfig); module.exports = config;