6 lines
160 B
TypeScript
6 lines
160 B
TypeScript
const BASE = process.env.NEXT_PUBLIC_OPENINARY_URL;
|
|
|
|
export function optimizedImage(path: string, params: string) {
|
|
return `${BASE}/t/${params}/${path}`;
|
|
}
|