abc222
Explore posts from serversDeploying without having to do npx playwright install-deps
Hello,
I'm deploying a node.js application that is using playwright, and it needs some dependencies in the container to run playwright well
However, I don't know how to use an image, or a setup that already has those dependencies
For now, I have this in my package.json scripts :
"start": "npx playwright install-deps && vite preview --host 0.0.0.0 --port $PORT"
However, it implies that the command is executed at every deployment, and it may just consume CPU power and slow down deployment, so I'm searching for a more elegant and efficient way of deploying with those playwright dependencies
It would be awesome if I could get some help to solve that issue !58 replies
CDCloudflare Developers
•Created by abc222 on 6/6/2023 in #pages-help
How to use node_compat = true with cloudflare pages ?
I know that there is a flag nodejs_compat, but it's not as powerful as node_compat = true , nice nodejs_compat isn't gonna polyfill modules such as fs or os
How could I use node_compat = true with a cloudflare pages (not worker) project ?
Can I do it directly with the cloudflare UI/Dashboard ?
12 replies