Ximaz
pnpm and ffmpeg-static
Hi folks !
I am having an issue with node_modules-installed binaries. I am using
ffmpeg-static
and fluent-ffmpeg
to do audio conversion with the SolidStart framework. When building my application with vinxi build, it seem to copy my root node_modules inside .output/server/node_modules
, with everything, excepted the ffmpeg binary that I downloaded through the pnpm install
command.
Is there any workaround in order to get the ffmpeg copoied into it ? Or to get the actual path of ffmpeg binary ? Because the relative path I get from the ffmpeg-static
module once ran contains the .output/server
part, which is false.
I could just remove that section from the path, but it looks like a dirty hack to get around this issue.
Any thoughts ?21 replies
Fetch request render HTML content to my page
So, I am trying to do a GET fetch request, client-sided even though I should do it server-side, because of CORS, but I don't know yet how to do that. Anyway, the request was made to https://www.youtube.com/watch?v=blablabla
but it seems that now, the page on which the request was made is rendering the HTML output of the YouTube video. I tried everything :
- commenting out the request call
- clearing Firefox' cache
- opening the page on private tab
- reloading the Vinxi dev server
- removing node_modules and re-installing them
Nothing worked so far, what ever I do, I still have the Youtube page rendering on my application... I don't know what to do to get back to the normal behaviour. Is there another kind of cache that I am missing ? If so, I really thought it would be gone when removing node_modules and clearing browser's cache... Any thought ?
5 replies