Wasp

W

Wasp

Join the community to ask questions about Wasp and get answers from other members.

Join

Is there a way to autofill the username based on the link in the login and signup forms.

I have created a system to invite a user via a link and when the user clicks on signup link he lands on signup page but the username field remains blank. I would want to pick it up from the URL query params and fill into the username field. #frontend #login...

Unexpected error during the build of the frontend in Production

Hello, when i launch: ``` npm install REACT_APP_API_URL=https://api.datanext.app npm run build...
No description

app.emailSender must not be set to Dummy

❌ --- [Error] Your wasp project failed to compile: ------------------------------- - app.emailSender must not be set to Dummy when building for production. ...

I messed up my db migrations...

Hi all.. I messed up my db migration and now I have no idea how to fix this. This 'migration' stuff is kind of insane, but I'm willing to put up with it because the framework itself is so solid. Anyways, I have my OpenSaaS project being tracked by git. I was trying to implement a new feature, which included a change to the schema.prisma file, which required a db migration. However, I later decided to just roll back to the last git commit. This messed up my migration, the errors weren't specific at all about what I should do so I think I just removed the latest migration directory? It got super messed up, so I just reset the entire db using "wasp db reset". It looked like it was working fine after reset. But now, I'm making more changes to the db schema, and tried migrating it. But it threw an error about the last migration from before I reset....

User last active timestamp

I'm trying to understand how is updated lastActiveTimestamp in user table. Thanks for your help...

Landing Page Header

Hello, I have my new wasp app up and running locally. I see in main.wasp I have a Landing Page at this \ route.
When I visit the landing page component in my src folder, I can't seem to find the header. I'm particularly looking for the login button. I see the login button on the landing page, just can't seem to find the actual component....

Server not listening

@kapa.ai my app in development suddenly stopped working yesterday. Both auth and user sign up and API calls. I tried a new install but smart thing. I see in the server logs that it doesn't say that the server is listening like it normqlly does. Any ideas?

How to connect to production database

Hi, How can i connect to the production postgresql database deployed to fly.io? Is it that I have to forward/proxy the database first and then use prisma studio? (wasp db studio?) Or can I get the database_url and connect directly to postgresadmin? (Which i did using this command flyctl postgres attach --app <your-app-name>, getting getaddrinfo error)...

Suddenly no Apps including new files can access server

@kapa.ai I was troubleshooting some API calls when I suddenly lost authorization. So I messed with it a bit and figured I had messed something up so I did a fresh install of opensaas and that file can't access it either.

Can I use this repo https://github.com/WeferralHq/weferral-api with the starter kit

Is it possible to use this github repo RESTFUL API built for Weferral and expand my SaaS

UI library

@kapa.ai what UI libraries are supported? I was trying to use sandcn and it was giving me a lot of trouble.

Deployment Error

Hey Wasp community! 👋 I'm deploying an OpenSaaS app to Fly.io from my M1 MacBook Pro, following the standard deployment docs: 1. Ran: wasp deploy fly launch myApp dfw...

Relation returned on findFirst but not findMany?

I am looking to make a query to return a batch of results rather than just one, but "profile" is not included in the findMany, only in the findFirst Returns profile - ```export const getCreatorById: GetCreatorById<any, any> = async ({ creatorId }, context) => { if (!context.user) { throw new HttpError(401);...

Is there a way to put integrate blog and docs with the login authentication?

I was working on a closed source platform for which the documentation is supposed to be private. The astro based documentation and blog are effect but how can I integrate them directly in app so that one can access them only after logging in....

How do I access full request object (headers, ip address, user agent) in backend functions?

Hi, I need to be able to use information from the request headers to perform different logic. For wasp actions I only see the option of getting the request body, and the context only contains db entities and the logged in user. Is there a way to get full access to the headers like useragent, ip address, etc?...

New SaaS app Bug?

Hey so when I try to run wasp new Then select 3 (saas) I run db start works fine, when I then run wasp start I get this error ...
No description

Disable Database

How to disable database? I am building an APP that just proxies API calls to Gemini and do not intend to store any data.

@kapa.ai where in the open saas template is the section to add to the prisma schema

trying to add some fileds to my prisma schema in the open saas template. i can't find the file for the life of me.