yalcinos
yalcinos
WWasp
Created by yalcinos on 2/27/2025 in #🙋questions
[Help] Getting CORS error on preflight request
Ahhh.. crapp! My bad makes sense now 🙂
18 replies
WWasp
Created by yalcinos on 2/27/2025 in #🙋questions
[Help] Getting CORS error on preflight request
Hmm my endpoint is post request. I still didn't get it using api level middleware why didn't work like this; export const corsMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => { middlewareConfig.set( "cors", cors({ origin: "*", methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"], }) ); return middlewareConfig; };
18 replies
WWasp
Created by yalcinos on 2/27/2025 in #🙋questions
[Help] Getting CORS error on preflight request
@miho This is my global middleware which is more strict export const getGlobalMiddleware: MiddlewareConfigFn = (middlewareConfig) => { const isDevelopment = config.isDevelopment; const clientUrl = config.frontendUrl ?? "http://localhost:3000"; middlewareConfig.set( "cors", cors({ origin: isDevelopment ? "" : [ clientUrl, "https://www.navigopro.com", /^http://localhost:\d+$/, /^http://127.0.0.1:\d+$/, ], credentials: true, }) ); return middlewareConfig; }; But I have one endpoint which is auth/widget I wanna enable full cors for now like this; I added this corsMiddleWare api level but didn't work export const corsMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => { middlewareConfig.set("cors", cors({ origin: "" })); return middlewareConfig; }; I suspect maybe global middleware oveeride api level middlewware? Also ideally, i wanna add certein hostnames to my cors list but is there any way to access database data inside of middleware to access some data to add cors configs?
18 replies
WWasp
Created by yalcinos on 2/27/2025 in #🙋questions
[Help] Getting CORS error on preflight request
Still didn't help even after i tried everything 😦
18 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
Right now just SEO and will share on Linkedin and star doing cold outreach
27 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
My website is live finally 🙂 https://navigopro.com
27 replies
WWasp
Created by yalcinos on 2/23/2025 in #🙋questions
TypeError: Cannot read properties of undefined (reading 'REACT_APP_STRIPE_MODE')
Perfect! Thank you 🙂
12 replies
WWasp
Created by yalcinos on 2/23/2025 in #🙋questions
TypeError: Cannot read properties of undefined (reading 'REACT_APP_STRIPE_MODE')
perfect 🙂
12 replies
WWasp
Created by yalcinos on 2/23/2025 in #🙋questions
TypeError: Cannot read properties of undefined (reading 'REACT_APP_STRIPE_MODE')
I solved the issue 🙂 I was trying to use meta.env in server side code my badd. If you try to use; import { env} from 'wasp/client' you have to add zod validation otherwise it is going to fail; https://github.com/wasp-lang/wasp/issues/2523
12 replies
WWasp
Created by yalcinos on 2/23/2025 in #🙋questions
TypeError: Cannot read properties of undefined (reading 'REACT_APP_STRIPE_MODE')
No description
12 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
Sure, will let you know and also excited for the swap and also this is my first micro b2b saas product as well 🙂 Good to get some feedback. I need 1-2 weeks for bug bashing and then will be ready 🚀 :boi:
27 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
makes sense, yes i created exactly same function and disable some of the configs from react-query 🙂 Will post soon in made with wasp channel about my product. Have been working last 2 months to create marketing/dashboard website 🙂
27 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
@Noah My bad i was try to figure how to talk with kapa.ai to as k something in knowledge base. I was able to create setup finction to disable some configs in React-query like refetchOnWindowFocus and refetchOnReconnect. Because it is not important for my case
27 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
@kapa.ai how to use mySetupFunction ?
27 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
@kapa.ai how to use configureQueryClient ?
27 replies
WWasp
Created by Noah on 1/25/2025 in #🙋questions
What are best practices for tweaking caching for react-query through wasp?
2
27 replies
WWasp
Created by yalcinos on 1/29/2025 in #🙋questions
Fly io Region or any alternatives?
Ahh that's good input thanks a lot. I am currently based on Canada but will do more research about Russia sansctions
8 replies
WWasp
Created by Killshot on 3/6/2024 in #🙋questions
Need Recommendations
For marketing email, Resend provides 1000 contacts/mo free but Sendgrid only 100
26 replies
WWasp
Created by Killshot on 3/6/2024 in #🙋questions
Need Recommendations
makes sense it does actually support smtp which i am going to try to use it
26 replies
WWasp
Created by Killshot on 3/6/2024 in #🙋questions
Need Recommendations
Hi all, I have one question 🙂 I would like to use Resend with React-Email library. Resend have really generious plan and it is really easy to use for developers. Is there any way to override default email provider and inject Resend?
26 replies