Simvolick
TTCTheo's Typesafe Cult
•Created by Simvolick on 7/7/2023 in #questions
headless cms to use with t3 stack?
I am writing an e-commerce project and not sure what is the best way to go about it and what to use as a cms that would be intuitive and easy to use for the content people who don’t code.
I am thinking of being my own cms, but that seems like too much work for no reason.
21 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 5/5/2023 in #questions
TailwindCss typescript error in config
I have a question regarding the implementation of the tailwind.config.js that uses the custom default props and has theme as a prop in the typography specification.
How do you make it work in typescript environment?
The theme gives me error. Also if I do : any I get a different error that it is not a ts file.
2 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 5/3/2023 in #questions
Error with mdx file webpack parser
I am trying to integrate an MDX files that I want blog articles in. I have a component <ArticleLayout meta={meta} {...props} />
I am using a TailwindUI template as a backbone for the some of the implementation and there it works fine. https://tailwindui.com/templates/spotlight
I have this export in order to render the page like this. But in the end I get the following error:
I am not using webpack and don't even have a webpack config
3 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 5/1/2023 in #questions
lib folder and best practives
What do you think about lib folder? I am moving from old project and want to move
in to typescript and into ct3 structure. Any tips on best practices?
10 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 3/25/2023 in #questions
Is it just me or the search in the questions in discord is broken?
Is it just me or the search in the questions in discord is broken? It doesn't give me a single question for search and no matter what I do I get nothing
2 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 3/25/2023 in #questions
Creating multi language application
I would like to create an app that has english as the main language, but I want the user if he speaks Spanish to be able to switch through some button to a Spanish language version and go instead of / to /es and that to carry over to ever page.
The question that I have is whenever I need to create a new directory in both components and in the /pages folder with /es route or what is the best way to go about it? Maybe there is already some tutorials and use cases on github of nextjs with multi language support? That would greatly help to understand how to deal with it.
8 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 3/20/2023 in #questions
devDependencies difference with dependencies in package.json
I have found the following stack overflow question, but I want more context if possible: https://stackoverflow.com/questions/18875674/whats-the-difference-between-dependencies-devdependencies-and-peerdependencies
I wanna know how and for what reason tailwindcss is in devDependencies and if I want to add additional packages do I always add them to normal dependencies and in which case (not basic, for development) you add there?
I see that even typescript is listed as devDep.
8 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 3/7/2023 in #questions
Any resources to learn the tRPC better? Hopefully with guides and examples?
Really struggling to learn otherwise in context of ct3 stack
18 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 3/4/2023 in #questions
tRPC and querying data from external api
I am trying to set up the following this.
User writes a text in the form. He presses the button, the button puts input into tRPC and does a query(or maybe a mutation?) to send a completion request to OpenAI API and returns a result from there. I take this result and display it in the new text format bellow the button.
Right now I know I have realised it incorrectly as it is not working, but I have no idea how to solve this or what is the best practice. Maybe I shouldn't be using tRPC at all.
45 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 11/23/2022 in #questions
No Overload matches this call with nextAuth mapping
3 replies