Closed pi0 closed 1 year ago
This PR rewrites ipx storage API for two goals:
Configuration migration:
++ import { ipxFSStorage, ipxHttpStorage } from "ipx"; -- dir: "./images", -- domains: ["http://localhost:3000"], ++ storage: ipxFSStorage({ dir: "./images" }), ++ httpStorage: ipxHttpStorage({ domains: ["localhost:3000"] })
Testing:
pnpm dev
http://localhost:3000/w_800/bliss.jpg
http://localhost:3000/rotate_25/https://picsum.photos/500/500
More changes need to be on top of this but i guess better to iterate in main and have smaller changelogs for next steps.
๐ Linked issue
โ Type of change
๐ Description
This PR rewrites ipx storage API for two goals:
Configuration migration:
Testing:
pnpm dev
http://localhost:3000/w_800/bliss.jpg
http://localhost:3000/rotate_25/https://picsum.photos/500/500
๐ Checklist