saM69420
Explore posts from serversDTDrizzle Team
•Created by saM69420 on 3/17/2024 in #help
is there a way to log the outputs of a queries with a custom logger?
I have a custom logger for logging out the sql query, but I would love to be able to log the results of all queries too
1 replies
KKinde
•Created by saM69420 on 1/16/2024 in #💻┃support
Kinde + Bun + Hono + React
Hey I was just hoping to get some advice/validation on code I've written for using Kinde with a bun and hono app. I'm using the typescript SDK.
My session manager is storing all the session items in cookies as the next.js libary does. Then I have some custom middleware for protected routes.
My backend is serving up a react app, the cookies get sent with every request, and everything is working there. I have a
/api/me
endpoint that checks if the user is logged in. The react app calls that endpoint when it first loads to check if the user is logged in.
10 replies
KKinde
•Created by saM69420 on 11/27/2023 in #💻┃support
New Application Environments
I'm trying to figure out the correct workflow when setting up a new application and i'm a little confused about environments.
What is the correct way of setting up environments for a new application? Currently my experience looks like this:
- Sign in to my kinde account, or create an account
- Add a new business for my app
- Navigate to that business and select start project from scratch
- Select Nextjs as the framework
- select social providers and email
- Select connect to get to the quick start where I can copy all my env vars and “start quickly”
This seems really easy and simple, but I’m automatically put into my production environment with no other environments available. I think I actually want a localhost environment to test things out with. So then I:
- Add environment (local or dev or something)
- Switch to that environment
I have a backend and a frontend application in this new environment even though I only had a next.js environment in my initially setup production environment.
- Delete the frontend app
- Go to settings/authentication to add social connections
- select the backend app
- Select Nextjs as the framework and go through the quick start
It seems easy to just use production but a bit awkward to get a dev environment the way i'm doing it
22 replies
DTDrizzle Team
•Created by saM69420 on 10/5/2023 in #help
Creating a Case-Insensitive Unique Index
I want to be able to select a user by their username but have usernames be case insensitive:
If I setup a users table like this:
It will create in an index definition:
Is there a way to create a lowercase index:
Or is there another way to achieve a lowercase equality check on a unique index?
8 replies