Skip to content

Commit b95d255

Browse files
committed
fix cache location
1 parent 2a2f82b commit b95d255

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/routes/resources+/images.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export async function loader({ request }: Route.LoaderArgs) {
99
return getImgResponse(request, {
1010
headers,
1111
allowlistedOrigins: [domain],
12+
cacheFolder: process.env.NODE_ENV === 'production' ? '/data/images' : './data/images',
1213
getImgSource: ({ params }) => {
1314
if (params.src.startsWith('/resources')) {
1415
// Fetch image from resource endpoint

0 commit comments

Comments
 (0)