How to load html file in a typescript strapi project?

Hi what was the url to access the file in your public folder? I am having issues coming up with the right url for the path.

const html_template = readFileSync(path.join(__dirname, '../../../../../public/templates/order_paid.html'), 'utf8');

Results in:

D:\\Devbox\\cbs\\ticketland-ts\\dist\\public\\templates\\order_paid.html'

In the dist folder i dont see any of the public files. So how are they accessible from the build?

1 Like