a year ago
No matter what I try, I could not get it to work
0 Replies
a year 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
a year ago
is the dockerfile alpine based?
a year ago
yeah
a year ago
does the nextjs app deploy with an alpine based dockerfile?
a year ago
any luck?
i saw on the docs that you can use private url to reduce latency, so tryna doing with redis
a year ago
ioredis?
a year ago
yeah but why do you need redis during build?
a year ago
if you get errors always show me them, otherwise im just guessing
a year 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
a year ago
dynamically swap between public and private urls then
a year ago
awesome
a year ago
awesome, happy to help where I can
a year ago
I've never used that stack before, it's Melissa's template right?
a year ago
okay I'll ask her next week
a year ago
or even better, you can ask her directly
a year ago
yeah railways documentation pages all come with an accompanying help thread!