Ximaz
Ximaz
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
I could instll it via Dockerfile, but well, I wouldn't like to install ffmpeg on my PC.
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
It's the second option, yet I don't want to depend on whether or not the env test has ffmpeg installed.
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
I will try it, thanks for your time.
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
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 findcommand may be ? It might be able to retrieve the path for ffmpeg-static binary.
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
I don't know if I can specify to ffmpeg-static where to place the binary… I could do that on a Dockerfile, but what about dev env ?
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
It seems to choose whether or not to pick certain files. Surely, there is a way to adjust the filters, right ?
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
the thing I dont understand is why .output/server will copy the node_modules, but not the binary of ffmpeg which is in the node_modules too.
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
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
SSolidJS
Created by kissa on 9/5/2024 in #support
Best way to get search params in an API route?
I was in fact too naive, params doesn't seem to have any value on my side.
4 replies
SSolidJS
Created by kissa on 9/5/2024 in #support
Best way to get search params in an API route?
Couldn't you use APIEvent["params"] ?
async function GET({ params, request }: APIEvent) {
// http://.../?param_one=blabla
const paramOne = params["param_one"] // equals to "blabla"
}
async function GET({ params, request }: APIEvent) {
// http://.../?param_one=blabla
const paramOne = params["param_one"] // equals to "blabla"
}
I believe ? I may be naive though, I am trying to learn API routing too...
4 replies
SSolidJS
Created by Enrypase on 7/26/2024 in #support
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
SSolidJS
Created by Ximaz on 10/28/2024 in #support
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
SSolidJS
Created by Ximaz on 10/28/2024 in #support
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
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
I did not even know Show had a callback...
28 replies
SSolidJS
Created by Ximaz on 10/28/2024 in #support
Fetch request render HTML content to my page
I tried to switch over Edge, which I never use, and it also renders the Youtube page. I never ever opened my application on Edge yet, so it's probably not a browser-related issue.
5 replies
SSolidJS
Created by Ximaz on 10/28/2024 in #support
Fetch request render HTML content to my page
I would like to add that my URL bar goes from https://localhost:8080/ to https://localhost:8080/watch?v=... as if I were a Youtube page... I have no watch route on my frontend server.
5 replies