diff --git a/firebase.json b/firebase.json index 2ff4adfe..7fbadd90 100644 --- a/firebase.json +++ b/firebase.json @@ -2,18 +2,36 @@ "hosting": [ { "target": "root", - "public": "out", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + "public": ".next/out", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] }, { "target": "hackcamp2025_dev", - "public": "out", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + "public": ".next/out", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] }, { "target": "hackcamp2025_main", - "public": "out", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + "public": ".next/out", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] } ] } diff --git a/next.config.ts b/next.config.ts index e685c446..09374566 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,8 +2,6 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { - // Must disable for output: "export" - unoptimized: true, remotePatterns: [ { protocol: "https", @@ -13,7 +11,6 @@ const nextConfig: NextConfig = { }, ], }, - output: "export", }; export default nextConfig; diff --git a/src/app/page.tsx b/src/app/page.tsx index 4c99bb93..b42b1a71 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -43,3 +43,5 @@ export default function Home() { ); } + +export const dynamic = "force-dynamic"; diff --git a/src/sections/sponsor-footer.tsx b/src/sections/sponsor-footer.tsx index d3fc307b..deaa30b1 100644 --- a/src/sections/sponsor-footer.tsx +++ b/src/sections/sponsor-footer.tsx @@ -132,4 +132,3 @@ const SponsorFooter = async () => { }; export default SponsorFooter; -export const dynamic = "force-dynamic";