2 years ago
No matter what I try, I could not get it to work
48 Replies
2 years ago
deploying with nixpacks or dockerfile?
nextjs is dockerfile, and the otel stack i'm using this template https://railway.app/template/7KNDff
i also changed this part for the collector so it fits the package @vercel/otel which is what i'm using

but i'm not understanding why my nextjs container is not reaching otel collector in the private network
2 years ago
is the dockerfile alpine based?
2 years ago
yeah
2 years ago
does the nextjs app deploy with an alpine based dockerfile?
2 years ago
any luck?
i saw on the docs that you can use private url to reduce latency, so tryna doing with redis
2 years ago
ioredis?
2 years ago
yeah but why do you need redis during build?
2 years ago
if you get errors always show me them, otherwise im just guessing
2 years ago
yeah why are you connecting to redis during build?
i think nextjs compiler steps thru the code during build and it triggers that connect() function. but i need that there so i can maintain a connection with redis
2 years ago
dynamically swap between public and private urls then
2 years ago
awesome
2 years ago
awesome, happy to help where I can
2 years ago
I've never used that stack before, it's Melissa's template right?
2 years ago
okay I'll ask her next week
2 years ago
or even better, you can ask her directly
2 years ago
yeah railways documentation pages all come with an accompanying help thread!



