pradeep
Explore posts from serversTTCTheo's Typesafe Cult
•Created by pradeep on 2/17/2024 in #questions
Video Transcoding Service
2 replies
CDCloudflare Developers
•Created by pradeep on 12/28/2023 in #general-help
cloudflare polish
Is cloudflare polish free with a pro plan?
3 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 9/19/2023 in #questions
responsiveness with object using tailwind
hello guys i am trying to achieve responsiveness in tailwind with the help of js object
example:-
will be converted on
because of dynamic class name (https://tailwindcss.com/docs/content-configuration#dynamic-class-names) i cannot write a function in javascript can anyone suggest me library which do the same thing or anything which will help me to remove this problem
10 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 8/16/2023 in #questions
t3-env is giving error module is not defined in ES module scope
i am trying to add t3-env in my project and it is giving me error
tsconfig.json
next.config.mjs
please help me with this i am unable to find how to resolve this error
6 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 8/1/2023 in #questions
Stale dynamic sitemap
I am trying to create dynamic sitemap but after first time it is not updating the sitemap can anyone help me fix this issue?
code:-https://github.com/pradeep800/striver-sheet-webiste/blob/main/app/sitemap.ts
2 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/12/2023 in #questions
dates are not same in server and client(dayjs)
this is giving output in client as
2023-08-07T13:00:00.000Z 2023-07-12T13:00:00.000Z
output in server
2023-08-07T18:30:00.000Z 2023-07-12T18:30:00.000Z
can anyone tell me why it is happening
15 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/11/2023 in #questions
working with datetime in drizzle
Problem:- I don’t know what date time is working in drizzle
Drizzle schema export const reminders = mysqlTable( "reminders", { id: int("id").notNull().autoincrement().primaryKey(), created_at: timestamp("created_at").defaultNow(), due_date: datetime("due_time").notNull(), should_send_mail: boolean("should_send_mail"), mail_sended: boolean("mail_sended").default(false), user_id: varchar("user_id", { length: 255, }).notNull(), question_no: int("question_no").notNull(), }, (reminder) => ({ ReminderCreatorIdIndex: index("reminder_creator_id_index").on( reminder.user_id ), }) ); I am giving drizzle reminderData: { dueDate: 2023-07-11T18:30:00.000Z, shouldSendMail: true } this value and drizzle is storing these value {"id":21,"created_at":"2023-07-11T17:21:35.000Z","due_date":"2023-07-11T13:00:00.000Z","should_send_mail":true,"mail_sended":false,"user_id":"dfc468c8-d3c7-4385-904b-6c40aa699104","question_no":2 Why there is difference can anyone tell me what is problem
Drizzle schema export const reminders = mysqlTable( "reminders", { id: int("id").notNull().autoincrement().primaryKey(), created_at: timestamp("created_at").defaultNow(), due_date: datetime("due_time").notNull(), should_send_mail: boolean("should_send_mail"), mail_sended: boolean("mail_sended").default(false), user_id: varchar("user_id", { length: 255, }).notNull(), question_no: int("question_no").notNull(), }, (reminder) => ({ ReminderCreatorIdIndex: index("reminder_creator_id_index").on( reminder.user_id ), }) ); I am giving drizzle reminderData: { dueDate: 2023-07-11T18:30:00.000Z, shouldSendMail: true } this value and drizzle is storing these value {"id":21,"created_at":"2023-07-11T17:21:35.000Z","due_date":"2023-07-11T13:00:00.000Z","should_send_mail":true,"mail_sended":false,"user_id":"dfc468c8-d3c7-4385-904b-6c40aa699104","question_no":2 Why there is difference can anyone tell me what is problem
2 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/10/2023 in #questions
open graph is not working
open graph is not working in next js 13 because it is not getting server rendered metadata can anyone tell me how can i server render my open graph in metatag
website :- https://striversheet.pradeepbisht.com/
github :-https://github.com/pradeep800/striver-sheet-webiste/blob/main/app/layout.tsx
if you check view page source it is adding script tag whcih should not be the case it should send html
can someone tell me how i can i make this metatag render on server side
4 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/10/2023 in #questions
throwing error is server action is not working in production
i am trying to throw error from server action and catching it in client it is working on development but it is not in production
it is giving me given below error:-
An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
code is basically this :-
in client side
```js
"use client"
function Compo(){
async function onClick(){
try{
await action();
}catch(err){
console.log(err.message);
}
///...some things render
}
can anyone tell me why?
2 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/9/2023 in #questions
how can modify cookies in route handler with server action
let say we have page route
server signout is implemented as given below
can anyone tell me why it is giving error in production as
ReadonlyRequestCookiesError: Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options
please help
1 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/9/2023 in #questions
signout from server in next js 13
can anyone tell me how can i signout from server in next auth?
signOut() is not working
and below code is also not working(i am using this inside server action
6 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/8/2023 in #questions
Promise.all is not working in transaction in drizzle
Can anyone tell me why this transaction is not working in drizzle?
it does not throwing any error but it is not deleting it either
2 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/4/2023 in #questions
how to delete file in uploadthing
can anyone tell me how to delete file in upload things?
2 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 7/3/2023 in #questions
drizzle studio is not working
I am trying to open drizzle studio but it is giving me error can anyone tell my how to fix it?
drizzle config:-
package.json
"drizzle-kit": "^0.19.3",
"drizzle-orm": "^0.27.0",
error:-
"mysql2" is not a valid driver. Available drivers: "pg", "mysql2", "better-sqlite", "libsql", "turso". You can read more about drizzle.config: https://orm.drizzle.team/kit-docs/config-reference
6 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 6/20/2023 in #questions
where clause in drizzle insert
can anyone tell why it's giving typescript error and how can i resolve it
error:
where clause doesn't exists
i want to do this query with single query
11 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 6/15/2023 in #questions
Shadcn Ui library select is not working Properly in mobile?
hello guys,
I am facing an issue with shadcn ui Select when I am clicking button it is also clicking the button which is right below it how can the issue can be resolved?
(use toggle between device and choose any mobile)
3 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 6/12/2023 in #questions
useState is not working
can anyone tell me why in given below code is not working properly
let it return us "dark" but now i am trying to change dom by this value it is not working
in dom it is putting value of "translate-x-0" it should be "translate-x-[-93]"
49 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 6/9/2023 in #questions
EditorJs readOnly toggle is not working
hello guys,
i am trying to make a editor in editorjs but when i am not writing anything and trying to toggle in editor it is giving me error of holder is undefine
can you please help me resolve this issue?
codesandbox link:-https://codesandbox.io/s/inspiring-frost-3v84mf?file=/src/App.js:559-848
3 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 6/8/2023 in #questions
how to remove query from Next js 13 app url without reloading?
how to remove query from next js 13 app url without reloading?
3 replies