We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aef3f74 commit 956c6d7Copy full SHA for 956c6d7
1 file changed
apps/web/app/wellknown/[domain]/[file]/route.ts
@@ -19,15 +19,18 @@ export async function GET(
19
}
20
21
const { appleAppSiteAssociation, assetLinks } =
22
- await prismaEdge.domain.findUniqueOrThrow({
+ (await prismaEdge.domain.findUnique({
23
where: {
24
slug: domain,
25
},
26
select: {
27
appleAppSiteAssociation: true,
28
assetLinks: true,
29
30
- });
+ })) || {
31
+ appleAppSiteAssociation: null,
32
+ assetLinks: null,
33
+ };
34
35
let response: WellKnownConfig[SupportedWellKnownFiles];
36
switch (file) {
0 commit comments