rhh4x0R
rhh4x0R
Explore posts from servers
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
Ok got it, thanks.
16 replies
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
So, I just got it deployed and works great now.
16 replies
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
It's building fine with just the regular node:20.17 image instead of alpine.
16 replies
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
Yep.
16 replies
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
NODE_ENV=production node out/index.js
16 replies
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
Looks like it's coming from a solana wallet adapter, web3 shit.
16 replies
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
I was able to build it using a full image, as the alpine builds are lightweight: https://github.com/nodejs/docker-node/issues/384 It's a workaround but still curious how I'd do this manually through an alpine image
16 replies
RRailway
Created by rhh4x0R on 10/24/2024 in #✋|help
Node-Gyp Error Docker React App
219a95c7-c16f-4dfc-8a87-a950c3537c97
16 replies
TtRPC
Created by rhh4x0R on 10/23/2024 in #❓-help
Getting CORS error with tRPC express adapter, locally
I realized that I could just run the tRPC server and that also runs the client somehow — so no need for different ports and causing cors issues.
4 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
I also hook into vite to define the variables in my config file, referencing process.env so maybe that’s it too.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
Maybe because I’m injecting them from docker it’s pulling the value before it’s stripped.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
Why’s that?
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
I just added quotes in the Railway var settings in the dashboard.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
Same one you sent me.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
Adding ARGS in the Dockerfile + quotes around necessary ENV vars seemed to do it. For anyone looking for this in the future, still not sure if I needed to update my astro.config.mjs with vite define variables, but we'll see.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
@Brody Seems to be working now. Thank you.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
Gotcha.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
Just tripped on the URL environment variables. adding quotes allowed it to build.
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
Hmm. Might be a VITE bundle thing, I'll try adding quotes I guess. EDIT: Probably what happens when you use ARG in Dockerfile
52 replies
RRailway
Created by rhh4x0R on 4/24/2024 in #✋|help
ENV Vars Not Accessible On Deployment
(localhost, rather)
52 replies