how can i create a custom global middleware almost same with the user authenticated middleware
i need to pass new data in context similar how can i get the user in context in action and query
Caching data with wasp
Just set up file upload/download to S3 as done in openSaaS. I'm guessing that every time a S3 url is generated with a key, you would get billed on AWS - is there a good way to cache data that works well with prisma/wasp?
React Router Future Flag Warning: React Router will begin wrapping state error
This error is appearing:
React Router Future Flag Error: React Router will begin wrapping state updates in
React.startTransition
in v7. You can use the v7_startTransition
future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition. Error Component Stack is about the:
RouterProvider...Weird vscode bug
In main.wasp, I get this vscode error showing that there is no export member on only these 2 queries.
I can use them in frontend components, it is not a showstopper but kinda annoying that the error persists even after closing/reopening vscode....
![No description](https://cdn.answeroverflow.com/1327989610063728672/image.png)
ERR_MODULE_NOT_FOUND problem with config
When I do
import { config } from 'wasp/client'
I get a problem with code: 'ERR_MODULE_NOT_FOUND',...
api issue
@kapa.ai api call getting 500 and this error rror in generateMarketingMessage: Error: OpenAI is not configured properly
[ Server!] at generateMarketingMessage (/home/brad/haystack30/app/src/demo-ai-app/operations.ts:54:13)
[ Server!] at generateMarketingMessage$1 (/home/brad/haystack30/app/.wasp/out/server/src/actions/generateMarketingMessage.ts:7:11)
[ Server!] at <anonymous> (/home/brad/haystack30/app/.wasp/out/server/src/middleware/operations.ts:14:30)
[ Server!] at <anonymous> (/home/brad/haystack30/app/.wasp/out/sdk/wasp/server/utils.ts:26:11)...
Rename DB column and migrate its data
Using prisma I had a column "balance" that I renamed "startBalance", and added a new one "currentBalance":
The previous model:
model TradingSession {...
Importing functions to worker files
I'm having a hard time importing functions to my worker files. Not sure what I'm doing wrong here 😄
How can I use functions from my actions.ts and queries.ts in my workers?...
Database Migration Problem
Hello!
I finally found the error that confused me a lot at the beginning of wasp.
Assume we have a model
```
model UserMetrics {...
UseQueries Support unavailable - best way around it?
I'm attempting to use the usequeries hook from tanstack query v4 - https://tanstack.com/query/v4/docs/framework/react/reference/useQueries as part of the wasp operations (like useQuery), but it's not be recognised by wasp.
If it's not supported it's not a problem, but what can I use as an alternative when I want to batch a few requests together?...
Looking for a Marketplace Boilerplate or Framework in Wasp!
Hi everyone!
I'm excited to dive into building a marketplace SaaS using Wasp and wanted to reach out to see if anyone here has:
Access to a "Marketplace" version of the Wasp boilerplate, or...
Freemium Mode of User
can we server users on freemium mode if s/he uses free request calls then platform would ask to login and purchase the product?
any help me out...
Integration of Custom Third-Party Authentication in Wasp
I am currently developing an application using Wasp and aim to integrate a custom third-party authentication system. This system requires sending a combination of login and password to a specific API endpoint and receiving a DTO containing a user ID in response. My objective is to utilize this user ID to either log in existing users or create new accounts within my Wasp application, effectively replacing the default authentication methods.
Could you provide guidance on the best practices for implementing such a custom authentication flow in Wasp? Specifically, I am interested in:
The recommended approach to send user credentials to the external API securely and handle the response appropriately....
Clean Application
I'll develop an application that will me only crud, it will have:
- Landing page
- Login Page
- Register page...
Heroku Server dont runned migration
I've created a heroku app, but when i've deployed it, didn't runned the migration