missing auth or service api in console with nextjs

AnonymousTRIAL

a year ago

0 Replies

a year ago

yoho @MantisInABox the clerk expert


a year ago

n/a


a year ago

Looks like you are missing the CLERK_SECRET_KEY environment variable. The Clerk Docs show you that you need to have at least 2 environment variables, the publishable key, and the secret key…

1216616169541341200


AnonymousTRIAL

a year ago

it wasnt that apparently its because i need mongodb in my env on top of that


AnonymousTRIAL

a year ago

its a discord clone I wanted to mess around with


a year ago

Make sure that you are using reference variables with the private Database URL. Otherwise, you will be paying for egress charges on every database connection


AnonymousTRIAL

a year ago

do I have to deploy a seperate app or is there a way to integrate it


AnonymousTRIAL

a year ago

yes I dont have one set up atm sadly I'm assuming remote queries works maybe via railway?


AnonymousTRIAL

a year ago

railway as a remote host for mongodb on a seperate app?


a year ago

If you have your DB on Mongo Atlas, you can use that, but you will pay egress from your app every time you make a DB request.


AnonymousTRIAL

a year ago

I only have railway and digital ocean


a year ago

You can use a database hosted anywhere with your application.


AnonymousTRIAL

a year ago

ok so Im going to use the mongo provision provided by railway


AnonymousTRIAL

a year ago

can you help as to where to get the env data from the seperate app pleasee

1216617745030975500


a year ago

That works perfectly fine as well. Once you deploy it, go back to your next app, and add a reference variable for the DB private URL


AnonymousTRIAL

a year ago

found it


AnonymousTRIAL

a year ago

@MantisInABox The provided database string is invalid. MongoDB connection string error: Missing delimiting slash between hosts and options in database URL. Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.

DATABASE_URL mongodb://mongo:RemovedForDiscord@roundhouse.proxy.rlwy.net:44786/test


AnonymousTRIAL

a year ago

its correct


AnonymousTRIAL

a year ago

unless the port shouldnt use a colon?


missing auth or service api in console with nextjs - Railway Help Station