terrence
Explore posts from serversCCoder.com
•Created by terrence on 7/24/2024 in #help
I'm trying to setup coder with the aws template, stucked with external auth(github)
7 replies
WWasp-lang
•Created by terrence on 5/15/2024 in #🙋questions
database migration error
when I updated prisma, it needs to do db migration, but every time it needs to erease everything, is there a way that only update what has been changed instead of recreate the whole db?
Environment variables loaded from .env
Prisma schema loaded from ../db/schema.prisma
Datasource "db": PostgreSQL database "postgres", schema "public" at "xx.xx.xx.xx:5432"
- The migration
20240514212711_dev
failed.
- Drift detected: Your database schema is not in sync with your migration history.
The following is a summary of the differences between the expected database schema given your migrations files, and the actual schema of the database.
It should be understood as the set of changes to get from the expected schema to the actual schema.
[] Changed the User
table
[] Altered column credits
(default changed from Some(Value(Int(3)))
to Some(Value(Int(1)))
)
? We need to reset the "public" schema at "xx.xx.xx.xx:5432"
Do you want to continue? All data will be lost. ? (y/N)
@miho @Vinny (@Wasp)8 replies
WWasp-lang
•Created by terrence on 5/14/2024 in #🙋questions
affiliate program integration
Is there a solution for integrate affiliate program into opensaas? I'm looking at rewardful with stripe, or is there any more generic way to integrate affiliate program into wasp? Thank you.
@miho @kapa.ai
12 replies
WWasp-lang
•Created by terrence on 5/4/2024 in #🙋questions
payment tiered access control middleware
Hi, I know wasp integrated with stripe, and defined 3 tiers, how can I add an access control? like hobby can upload 5 times, read 20 times, pro can upload 20 times, read unlimited, enterprise everything unlimited, like I was thiking of add a middleware to my specific api, but will the middleware has to be global? or do you have have any solution for this type of feature? Thank you.
@miho @sodic
11 replies
WWasp-lang
•Created by terrence on 4/28/2024 in #🙋questions
Is it possible to separate client and server wasp build?
each time I update stuff on client, and want to push to netlify, I need to run wasp build, but it rebuild both front and backend, it takes so much time(and sometime I only made change to client code, last second it could successfully build, but now it cannot find DATABASE_URL which is really weird), is it possible to only build front or back? and do we have a solution to integrate CI/CD? like I'm using coolify, let it automatically pull code from github when new code pushes triggered, so it can update automatically.
@miho
13 replies
WWasp-lang
•Created by terrence on 4/25/2024 in #🙋questions
customize auth UI button shape
Hi, I see there is an appearance to customize the color of the auth UI, how can I change the shape or add more details?
@miho
7 replies
WWasp-lang
•Created by terrence on 4/14/2024 in #🙋questions
how to add middleware for actions and querys
I see there is doc for add middleware for api, but how to add middleware for actions or querys? I dont see a tutorial for that, and tried many ways, it does not works
25 replies
WWasp-lang
•Created by terrence on 4/2/2024 in #🙋questions
running wasp inside google idx error
I am trying to setup the dev environment test out opensaas with google online ide idx, but when I try to run command: wasp db migrate-dev
wasp-bin: script: streamingProcess: exec: invalid argument (Bad file descriptor)
Is this fixable? I think the IDX system is Nix, so maybe it's not compatible? I should avoid this online IDE in order to make it work? Thank you.
🐝 --- Compiling wasp project... --------------------------------------------------
[ Wasp ] Starting npm install
[ Wasp ]
[ Wasp ] removed 11 packages, and audited 833 packages in 4s
......
......
✅ --- Your wasp project has successfully compiled. -------------------------------
🐝 --- Starting database migration... ---------------------------------------------
wasp-bin: script: streamingProcess: exec: invalid argument (Bad file descriptor)
@Wasp Team @Wasp Expert
13 replies
WWasp-lang
•Created by terrence on 3/11/2024 in #🙋questions
Is there a detail tutorial to add pages and actions?
Hi, I'm new to opensaas, I set up everything, and it works, right now I'm trying to add new pages, and methods calling 3rd party APIs, and display the result, it cannot request directly from client side because of CORS issue, so I try to modify the server like actions, main.wasp, but I'm still bit confused, do we have like detailed tutorial how to add those? I checked wasp doc, still not clear, if we have some examples on top of opensaas, it would be great, thank you.
5 replies