mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-27 01:36:25 -04:00
Add image configuration options in next.config.ts: set image qualities and disable client-side router cache for dynamic pages.
This commit is contained in:
1 file changed
+4
@@ -16,6 +16,7 @@ const nextConfig = {
|
|||||||
ignoreBuildErrors: true,
|
ignoreBuildErrors: true,
|
||||||
},
|
},
|
||||||
images: {
|
images: {
|
||||||
|
qualities: [50, 75, 100],
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: "https",
|
protocol: "https",
|
||||||
@@ -48,6 +49,9 @@ const nextConfig = {
|
|||||||
...(process.env.NEXT_PUBLIC_ONION_DOMAIN ? [process.env.NEXT_PUBLIC_ONION_DOMAIN] : []),
|
...(process.env.NEXT_PUBLIC_ONION_DOMAIN ? [process.env.NEXT_PUBLIC_ONION_DOMAIN] : []),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
staleTimes: {
|
||||||
|
dynamic: 0, // disable client-side router cache for dynamic pages
|
||||||
|
},
|
||||||
},
|
},
|
||||||
headers: async () => [
|
headers: async () => [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user