75 Replies
Project ID:
b57dffdc-7fdd-439a-9b87-915525a40fbb
please provide full build logs
https://bookmarklet.up.railway.app/log-downloader/
@Brody It doesn't go past the build phase so this is all that gets logged.
use the bookmarklet and send the resulting file
The bookmarklet doesn't work.
It just HREF's me straight to the landing page.
just tested it, works fine, what browser are you using
Opera GX.
others have used the bookmarklet without issue on operagx
please follow the 3 steps
please follow the 3 simple steps
It's in my bookmarks bar.
the wrong thing is in your bookmark bar, i suggest giving that page a closer read
Figured it out but it isn't that clear.
Anyway
is this a create react app?
React & NextJS
idk if related at all but there is a new incident about builds failing
I'm not sure it was happening before that appeared.
https://railway.instatus.com/clly88con31101ceogqw5uca41
posted 10 mins ago
A percentage of builds are failing to go through – Incident details...
A percentage of builds are failing to go through – Incident details - Railway Status
its related to this, not the current issue
https://discord.com/channels/713503345364697088/1145794055490506783
i mean yes the current issue too, but the build would fail regardless
Hmm
we wait for jr
Pretty off topic brody, I have these errors coming up now.
When running on my machine, it works perfectly but I don't understand why typescript is overkilling the type checks when its going through to railway.
In this instance, is not possible for me to edit every session instance as it's handled by NextAuth and edited on a callback when the session is created to include the data the code is requesting.
And they are locked in typesafe checks too, just to ensure the data is actually there.
Not really sure why it's doing this.
@Brody
hey no need for the pings #🛂|readme #5
my first guess as to why you are seeing different behaver would be different node versions between local and railway
I think railway is running on a lower version of node>npm as I have seen that pop up in the console.
How do I update that on railways side
deafult is 16 on railway, what are you using locally?
v18.14.2
My bad.
just set
engines.node
to 18
in your package.json
note, you cant specify minor and patch versionsTrying now.
Yeah it's still pushing through this error.
is your tsconfig getting gitignored or something?
Nope.
then im sorry but i dont really have anymore ideas, but this error is not likely to have only ever appeared in a railway build so feel free to try to do some research around this topic
Is there a way to check the node version when building it
Yeah not sure it's updated correctly.
I'll look elsewhere anyway
Might just be I have to purchase a normal vps and run it on there, not sure if railway just gonna keep yeeting me 💀
Not when building, but u can when u deploy with
console.log(process.version);
There ain't anywhere I can put that as it doesn't get past the building stage.
It keeps crashing.
What's ur next.config.js?
can u paste it here?
What version?
of NextJs
^13.4.8
add this to ur nextConfig
aight
like this
building one sec
oh i think its
working now
bruh moment
who know that ignoring typescript would be the answer LOL
just be careful, if it works it indicates that u have some type problems with ur code
next.config.js Options: typescript
Next.js reports TypeScript errors by default. Learn to opt-out of this behavior here.
yeah ive looked over and it works perfectly on my machine
im not sure why type checks go overkill on railway
just nextjs things i guess
CI is set to true
would that have anything to do with it?
I don't think so, just the enviroment
funky
this happens on builds in prod
nextjs is v sensitive imo
I guess u can close this thread now lol
mark as solved*
idk if i should make another ticket but, does railway provide static ips for mondodb access
they do not
is there a way of accessing without actually making another railway project
is the mongodb in the same project as the service that needs it?
yeah
rn its accessed via code but
getting these errors cause
railway isnt whitelisted onto my db
this is not a railway mongo database
i had just asked if the database was in the project, please do your best to provide correct information
but you would need to whitelist all ips with either a wildcard or 0.0.0.0/0
that would pose a huge security issue
not really, railway's databases do not have ip whitelisting
for mongo, if i whitelist any ip it would mean anyone with a user/password could have access
do you plan on handing that out?
probably not, so you will be fine
dont put anything sensitive into a .env file, even a local .env file, and you wont have issues
store the secrets in the service variables and use the railway cli to run your app locally with the variables from the service
https://docs.railway.app/develop/cli#local-shell
i disabled ip checking anyway
its working other than none of my icons from the public folder are loading
ill figure that out somehow anyways
sounds good
oml
i just bought a domain with google domains to find out railway isnt compatible
as you cant root cname records with gdomains
and railway doesnt give nameservers
is there a way around this
use cloudflares nameservers
ive already registered with google domains tho
and it wont let me transfer it to cloudflare
you don't need to transfer, just use their nameservers