alex (he/him)
Explore posts from serversBABetter Auth
•Created by alex (he/him) on 5/17/2025 in #help
Svelte Kit hooks.server.ts getSession not working
I want to use better-auth with SvelteKit, but I don't use the
svelteKitHandler
.. I've set-up a custom route apps/frontend/src/routes/api/auth/[...all]/+server.ts
with the following code:
This is because it uses two Cloudflare Workers, one running the server and the other just a proxy.
Now i want to use inside hooks.server.ts
the following code
The cookie inside event.request.headers
does include the etter-auth.session_token=
, but it still always return null
.. I can't use auth.api.getSession
because the auth instance runs in a different worker, but according to the docs it should work with https://www.better-auth.com/docs/reference/faq
I think I'm maybe missing some setup, which is needed if I use a custom api route and note the svelteKitHandler
, but I'm a bit lost. Can anyone help?4 replies
DTDrizzle Team
•Created by alex (he/him) on 12/12/2024 in #help
How to set opclass for index with custom sql column
we do have following definitions, after we used
drizzle-kit pull
Now the issue is that, drizzle-kit generate
thinks it needs to drop the index and recreates it, because it doesn't understand that the opclass is optional.
This is the initial state from introspection
This is what drizzle generates as a migration
I know for other columns we can use .op('text_ops')
, but that doesn't work for the custom index column with sql
?1 replies
CDCloudflare Developers
•Created by alex (he/him) on 11/14/2023 in #pages-help
Help understanding routing with a custom `_routes.json`
Hey I'm debugging an user bug report for Astro.
The user has the following
_routes.json
And the following file-tree:
If he now tries to access his webpage using the following url: https://example.com/unknown
, the index.html
is returned.
Would like to understand the why, so we can offer a fix in Astro?12 replies
CDCloudflare Developers
•Created by alex (he/him) on 10/20/2023 in #pages-help
`pages.dev` is limited compared to custom domain
We have enabled CF Fonts & CF Image Resizing on a zone, which also is setup as a custom domain for our pages project. That works fine for the main production branch. However accessing the preview deployments at
hash.pages.dev
, both system do not work. What is the best way to make them work with the pages.dev
urls, or get individual preview urls on the custom domain automatically?6 replies
CDCloudflare Developers
•Created by alex (he/him) on 7/3/2023 in #pages-help
`rss.xml` Error 1101
trying to access: https://baae285e.test-ef9.pages.dev/rss.xml
But get strange issue, can someone help?
7 replies
DTDrizzle Team
•Created by alex (he/him) on 6/19/2023 in #help
drizzle-kit@win still not working. What am I doing wrong?
/Users/alexanderniebuhr/Developer/Projects/alexanderniebuhr_blog/packages/db/drizzle.config.ts
6 replies
DTDrizzle Team
•Created by alex (he/him) on 6/4/2023 in #help
Type Declaration with TypeScript in Monorepo failes
I am trying to setup a monorepo with moon and pnpm, where shema lives in an additional package and is imported by other apps. Is there any monorepo example?
Currently I get following error:
There is an GitHub Issue already, can anyone help with workarounds or fixes, explanations?
https://github.com/drizzle-team/drizzle-orm/issues/656
6 replies