Deskripsi: - Membuat route handler /event/[id]/confirmation untuk deep link mobile - Menambahkan deteksi platform (iOS, Android, Web) dari user agent - Memperbaiki Content-Type header untuk file .well-known (AASA & assetlinks) - Menambahkan route ke public middleware agar bisa diakses tanpa auth File yang diubah: - src/app/event/[id]/confirmation/route.ts (baru) - src/middleware.tsx (tambah public route) - next.config.js (tambah headers untuk .well-known) Testing: - File .well-known accessible: ✅ YES - Content-Type header correct: ✅ YES - Deep link route works: ✅ YES - Platform detection works: ✅ YES ### No Issue
37 lines
895 B
JavaScript
37 lines
895 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: false,
|
|
output: "standalone",
|
|
eslint: { ignoreDuringBuilds: true },
|
|
typescript: { ignoreBuildErrors: true },
|
|
experimental: {
|
|
serverActions: true,
|
|
serverComponentsExternalPackages: ["@prisma/client", ".prisma/client"],
|
|
},
|
|
webpack: (config, { isServer }) => {
|
|
if (isServer) {
|
|
config.externals = config.externals || [];
|
|
config.externals.push("@prisma/client");
|
|
config.externals.push(".prisma/client");
|
|
}
|
|
return config;
|
|
},
|
|
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/.well-known/:path*",
|
|
headers: [
|
|
{ key: "Content-Type", value: "application/json" },
|
|
{
|
|
key: "Cache-Control",
|
|
value: "no-cache, no-store, must-revalidate",
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|