Niels-IO / next-image-export-optimizer

Use Next.js advanced <Image/> component with the static export functionality. Optimizes all static images in an additional step after the Next.js static export.
413 stars 51 forks source link

upate copy path to correctly handle files that contain the word public #215

Closed jacoblogan closed 1 month ago

jacoblogan commented 3 months ago

The copy function isn't working with filenames or paths that contain the word public. Instead of just taking the part of the path found after the last instance of the word public this change will take everything after the first instance found.

Niels-IO commented 2 months ago

Thanks for the catch @jacoblogan. I will take a look!

Niels-IO commented 1 month ago

@jacoblogan Thanks for the PR. I merged it with a slight edge case handling when public is not found at all