Ximaz
pnpm and ffmpeg-static
The thing is taht ffmpeg-static installs the ffmpeg binary to a node_modules folder. I am using pnpm to manage packages, but then the path contains some package versioning in the name, etc... So it may change, It's quite unstable and I don't think that, when installing ffmpeg using the ffmpeg-static package, I can specify a path to which the binary should be placed. I should crawl though the folders to find it. I could use the
find
command may be ? It might be able to retrieve the path for ffmpeg-static binary.21 replies
pnpm and ffmpeg-static
I mean, that is also a hacky-way to me to include the binary at the OS-level… I could do it via Docker, yes, but what happens when someone won’t run the projet using Docker ? Like a dev environment, and they don’t want ffmpeg to be installed ? In that configuration, with vinxi dev command, it’s not an issue, as the server runs at the project’s root level, not in .output/server folder, which lets the server find the ffmpeg static binary correctly. But then vinxi start, for prod, won’t work as expected because of that.
21 replies
defineConfig import.meta.dev
Hey, so I just found that thread about env, and I wanted to ask something because I can't seem to find the anwser, yet this seems related.
I am loading env variables using a docker-compose file, populating the docker container via the
env_file:
instruction, and passing it my env file path. The container has the env variable loaded in it, but the app.config.ts
doesn't seem to find them. I don't want to load a .env file a this point, as it's already loaded through docker-compose. Neither import.meta.env
nor process.env
will expose the desired env variables. Even the ones prefixed by VITE_
(even though it's server side, so it should not matter, as far as I know).
Any clue of what could happen here ?
It looks like the env variable are not available during building process, as a console.log(process.env) won't reveal any shell env variable. I wonder how though ? How could I access them without having to load a .env file, but resolving the ones already available in the shell at build time ?31 replies
Fetch request render HTML content to my page
It seems even worse. It seems to be related to the fact that I had an index.html at the root of my project, which was downloaded for tests purposes, but the webserver though it had to be render at
/
. HTML files shuld be excluded by default imo.5 replies
Fetch request render HTML content to my page
I shutdown my server and started a Python server on the same port using
python -m http.server 8080
, cutted that one out too, and started my vinxi server back. This time, it worked. But why did I have to do all of that ?5 replies