enzostvs HF Staff commited on
Commit
5497c97
·
1 Parent(s): 28bb6b2

fix build cache issue

Browse files
Files changed (2) hide show
  1. app/(public)/page.tsx +2 -0
  2. next.config.ts +20 -0
app/(public)/page.tsx CHANGED
@@ -4,6 +4,8 @@ import { UserProjects } from "@/components/projects/user-projects";
4
  import { AskAiLanding } from "@/components/ask-ai/ask-ai-landing";
5
  import { Bento } from "@/components/public/bento";
6
 
 
 
7
  export default async function Homepage() {
8
  return (
9
  <>
 
4
  import { AskAiLanding } from "@/components/ask-ai/ask-ai-landing";
5
  import { Bento } from "@/components/public/bento";
6
 
7
+ export const dynamic = "force-dynamic";
8
+
9
  export default async function Homepage() {
10
  return (
11
  <>
next.config.ts CHANGED
@@ -12,6 +12,26 @@ const nextConfig: NextConfig = {
12
  },
13
  ],
14
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  };
16
 
17
  export default nextConfig;
 
12
  },
13
  ],
14
  },
15
+ headers: async () => [
16
+ {
17
+ source: "/:path*",
18
+ headers: [
19
+ {
20
+ key: "Cache-Control",
21
+ value: "public, max-age=0, must-revalidate",
22
+ },
23
+ ],
24
+ },
25
+ {
26
+ source: "/_next/static/:path*",
27
+ headers: [
28
+ {
29
+ key: "Cache-Control",
30
+ value: "public, max-age=31536000, immutable",
31
+ },
32
+ ],
33
+ },
34
+ ],
35
  };
36
 
37
  export default nextConfig;