mirror of
https://github.com/Radiquum/AniX.git
synced 2025-06-05 11:39:36 +05:00
85 lines
2 KiB
JavaScript
85 lines
2 KiB
JavaScript
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;
|