AniX/next.config.mjs
Radiquum a4ecc27874
Some checks failed
Build and Publish 'anix-api-prox' to Docker Hub / publish (push) Has been cancelled
Build and Publish 'anix' to Docker Hub / publish (push) Has been cancelled
try fix styles
2025-08-28 22:46:15 +05:00

84 lines
2 KiB
JavaScript

import withFlowbiteReact from "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",
},
],
},
];
},
};
export default withFlowbiteReact(NextConfig);