fix: removed revalidate
This commit is contained in:
1 parent
dd7339b62c
commit
edf74fc92c
3 files changed
+5
-12
No files matched your search
@@ -22,3 +22,5 @@ export async function GET(request: Request) {
|
||||
return NextResponse.json([]);
|
||||
}
|
||||
}
|
||||
|
||||
export const revalidate = 0;
|
||||
@@ -30,6 +30,8 @@ export async function GET(request: Request) {
|
||||
|
||||
return NextResponse.json(torrents);
|
||||
} catch (error) {
|
||||
return NextResponse.json([]);
|
||||
return NextResponse.json([{ title: JSON.stringify(error), id: JSON.stringify(error) }]);
|
||||
}
|
||||
}
|
||||
|
||||
export const revalidate = 0;
|
||||
@@ -7,17 +7,6 @@ const nextConfig = {
|
||||
hostname: '**'
|
||||
}
|
||||
]
|
||||
},
|
||||
future: {
|
||||
webpack5: true
|
||||
},
|
||||
webpack(config) {
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
encoding: false
|
||||
};
|
||||
|
||||
return config;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user