mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-04-30 18:59:37 +00:00
Fixed Unsplash Images Being Constant
This commit is contained in:
parent
414b1487da
commit
5001d32257
2 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,11 @@ export async function GET() {
|
|||
|
||||
if (result?.response) {
|
||||
const newImages = result.response as Array<Record<string, any>>;
|
||||
return new NextResponse(JSON.stringify(newImages), { status: 200 });
|
||||
const response = new NextResponse(JSON.stringify(newImages), {
|
||||
status: 200,
|
||||
});
|
||||
response.headers.set('Cache-Control', 'no-store');
|
||||
return response;
|
||||
} else {
|
||||
return new NextResponse('Failed to get images', { status: 500 });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue