sangrepura
sangrepura
CDCloudflare Developers
Created by sangrepura on 1/28/2024 in #general-help
Help needed: How do i seed my local KV store?
Wow, ok that actually worked. THANK YOU! I now have 3 sqllite dbs in my state dir but I'm able to use it in my route's loader function
11 replies
CDCloudflare Developers
Created by sangrepura on 1/28/2024 in #general-help
Help needed: How do i seed my local KV store?
They sure don't present it this way. This blog post from 21/12 presents it as ready for prime time https://blog.cloudflare.com/remix-on-cloudflare-pages I really don't want to have to deploy just to test my app, and adding a k/v entry with wrangler locally should not be creating blobs my app can't read. It's supposed to be JSON data. Am I missing something/ doing it wrong?
11 replies
CDCloudflare Developers
Created by sangrepura on 1/28/2024 in #general-help
Help needed: How do i seed my local KV store?
Oh and I'm running my app like so:
wrangler pages dev ./public --kv=testNS --local --live-reload
wrangler pages dev ./public --kv=testNS --local --live-reload
11 replies
CDCloudflare Developers
Created by sangrepura on 1/28/2024 in #general-help
Help needed: How do i seed my local KV store?
OK thank you! I did run pages dev --local and tried adding an entry using
wrangler --binding=test
NS kv:key put 'product-13' '{"name":"product 13"}' --local -
-preview false
⛅️ wrangler 3.25.0
-------------------
Writing the value "{"name":"product 13"}" to key "product-13
" on namespace 10cae290a79b4a49a9f5d4f8d1c51539.
wrangler --binding=test
NS kv:key put 'product-13' '{"name":"product 13"}' --local -
-preview false
⛅️ wrangler 3.25.0
-------------------
Writing the value "{"name":"product 13"}" to key "product-13
" on namespace 10cae290a79b4a49a9f5d4f8d1c51539.
but it just adds a blob entry to _mf_entries and my app cannot read it. This has been a terrible DX so far
11 replies
TTCTheo's Typesafe Cult
Created by Somnath Golui on 1/7/2024 in #questions
Need help to solve this type error. Getting type error in NextAuth adapter
npm uninstall next-auth 😂 lol, that appears to be the exact issue that made me rage quit next-auth. Here's the bug report:
https://github.com/nextauthjs/next-auth/issues/9493. Also related: https://github.com/nextauthjs/next-auth/pull/9503 https://github.com/nextauthjs/next-auth/pull/9381 seriously though, fuck next-auth
6 replies
TTCTheo's Typesafe Cult
Created by peternovak on 12/31/2023 in #questions
Error message in vanilla /app directory & drizzle project
All good my friend. Happy new year!
6 replies
TTCTheo's Typesafe Cult
Created by peternovak on 12/31/2023 in #questions
Error message in vanilla /app directory & drizzle project
I encountered the same issue, and found this bug report: https://github.com/nextauthjs/next-auth/issues/9493 I remediated it with the following changes to src/server/auth.ts:
import { Adapter } from "next-auth/adapters";

export const authOptions: NextAuthOptions = {
// ...code
adapter: DrizzleAdapter(db, mysqlTable) as Adapter,
// ...code
}
import { Adapter } from "next-auth/adapters";

export const authOptions: NextAuthOptions = {
// ...code
adapter: DrizzleAdapter(db, mysqlTable) as Adapter,
// ...code
}
6 replies