mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-05 07:44:38 +00:00
82 lines
1.9 KiB
JavaScript
82 lines
1.9 KiB
JavaScript
const { withPlausibleProxy } = require("next-plausible");
|
|
const withFlowbiteReact = require("flowbite-react/plugin/nextjs");
|
|
/** @type {import('next').NextConfig} */
|
|
const NextConfig = {
|
|
reactStrictMode: false,
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
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 = withPlausibleProxy({
|
|
customDomain: "https://analytics.wah.su",
|
|
})(withFlowbiteReact(NextConfig));
|
|
|
|
module.exports = config;
|