Wasp

W

Wasp

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

Join

overwrite entire dockerfile

Pretty much the challenge I'm having is being able to replace the NODE_ENV during build time. I see that production is hardcoded into the default wasp dockerfile. Appending a new dockerfile at the end does not help me much I don't think....

Redirect to user to same page after login

I would like to redirect users to same page they are on, after logging in. How is this possible?

Web socket for streaming

Create an example of web socket for streaming

No Google Email in Database of User

Hi! I am using the Open Saas Template and implemented Google Authentication for Sign Up and Login, I realised looking into Primsa Database, the table User, it successfully register the user but the email field is null. I ensured I have already requested those /auth/userinfo.email is enabled in Google's side. Was wondering if this is normal behaviour or what do I need to do to get the email showing up inside the database? Thanks!

Question about Open Ai credit management

is there a documentation to learn how to work with open ai credit management in opensaas

Fresh install - Error: There is no datasource in the schema

Hi, i just came back to try Wasp with v16 again. The Problem: wasp db migrate-dev gives my the Error in the section Setting up database... : Error: There is no datasource in the schema. You don't have any datasource defined in your schema.prisma....

Save failed: user with the same identity already exists -- Making a user manually

I'm not sure how Wasp makes a user how does that work? I need to make a user in the background. If I write ``` if (!user) { // Create a new user if they don't exist...

How do I access my prima studio for my app after it's deployed on fly.io?

I've deployed my app to fly.io, now how do I access prisma studio for my deployed application?

Google sessionId not persisting

I'm using a deferent client frontend, and I'm noticing that after signing in with google, the user is able to login in fine but immediately gets logged back out (since there's no sessionId stored) not sure what additional information I can provide to help back this question....
No description

How to properly type Prisma query results with included relations in Wasp?

Hi everyone, I'm trying out Wasp, and I have a small problem I would like share here. `model Product { id String @id @default(uuid()) name String...

Deployed OpenSaaS app not sending emails

Hey there, I have deployed an OpenSaaS app via fly.io, and everything seems to be OK except for email signup. When I try the email sign-up, I see this in the server logs, but never get an email: 2025-02-27T13:52:38Z app[1781252b571058] mia [info]POST /auth/email/signup 200 68.872 ms - 16 ...

[Help] Getting CORS error on preflight request

I tried everything to fix this CORS error but if i try to access my backend server from different origin i get this cors error do you guys know why? I tried different things to enable cors for all domains but didn't work Like adding globalMiddleware or api level middle ware....
No description

Wasp typescript error

version = 0.16.2 logs ``` dylank in sunderer on  wardbox/v1 [!] via ⬢ v20.18.3 ...

Postgres ssl certificate in the final build

I need to secure connections to my Supabase database instance, and for that to happen I need to ship the CA / Root Certificate in the build directory so that the server can find it when running in a staging / production build. What's the recommended way to achieve that?...

WebSocket Not Working in Production – Docker Server Rejects Connections

Hi Wasp team, I am experiencing an issue with WebSocket connections in my self-hosted production environment. After investigating, I found that the Docker server itself is rejecting WebSocket connections. Issue Summary:...

Is there a way to generate prisma migrations without applying them immediately?

Sometimes I need to apply Prisma migrations that do not only require a DDL change, but also some additional SQL statements I'd need to add in to migrate data. For instance when splitting a field into multiple columns, for setting an initial value to a column after it's been introduced (without a default value), etc. Is there a recommended way to do it? Otherwise whenever I edit a migration after generating it with wasp db migrate.dev it resets my local DB which kinds of defeats the purpose of testing additional migration statements...

Deploy to github

When creating an opensaas project, should i deploy every folder separately with their own repository? Or just one repo that regroup them all?

Can the wasp db studio command be altered to take the connection string directly?

Can the wasp db studio command be altered to take the connection string directly in CLI instead of pulling it from env.server? Long story short, I have a hackintosh that is incapable of virtualization. Docker won't run on it. I am building everything on my laptop, but i would like to be able to at leats access the db in a easy way on the hackintosh. ...

Getting invalid email error even with a valid email, when uppercase letters are in the domain name

Using the builtin email auth with SendGrid, I have a user who discovered a bug. They put in their email address like this:
And they received this error from Wasp:
Validation failed: email must be a valid email
Validation failed: email must be a valid email
(wasp outright rejected it and never passed the email to SendGrid)...

TypeError: Cannot read properties of undefined (reading 'REACT_APP_STRIPE_MODE')

I am trying to add new client variable switch between stripe prod and test. But when I try to access the variable it can't find it . I tried two way to access it; import {env} from 'wasp/client'...