next config no cache
This commit is contained in:
+6
-10
@@ -1,5 +1,4 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
import withPWA from "next-pwa";
|
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
@@ -20,6 +19,11 @@ const nextConfig: NextConfig = {
|
|||||||
{
|
{
|
||||||
source: "/:path*",
|
source: "/:path*",
|
||||||
headers: [
|
headers: [
|
||||||
|
{
|
||||||
|
key: "Cache-Control",
|
||||||
|
value:
|
||||||
|
"no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: "X-DNS-Prefetch-Control",
|
key: "X-DNS-Prefetch-Control",
|
||||||
value: "on",
|
value: "on",
|
||||||
@@ -49,12 +53,4 @@ const nextConfig: NextConfig = {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
const withPWANextConfig = withPWA({
|
export default nextConfig;
|
||||||
dest: "public",
|
|
||||||
register: true,
|
|
||||||
skipWaiting: true,
|
|
||||||
disable: process.env.NODE_ENV === "development",
|
|
||||||
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5 MB
|
|
||||||
})(nextConfig);
|
|
||||||
|
|
||||||
export default withPWANextConfig;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user