Wasp-lang

W

Wasp-lang

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

Join

How can I put the production website behind a password like a staging area?

I have the site deployed on fly.io as i need it live for some testing. How can I put it behind a password so its not publically available to anybode?...

Getting stuck at Setting up database after configuring external postgresdb

I am in dev and have entered a postgresql hosted with supabase in .env.server. I have tested the connectoin through terminal and it works without problem. I ran the following commands: rm -r migrations/...

How to redirect from www to non www

Hi everyone, I have this little problem that sometimes some websites redirect my non www website to a www version, and because of the wasp web client url (I guess that's the reason why) being set to non www, the backend won't work, and it throws CORS errors. What do you suggest?

Login does not work after verifying with the link

Wasp version: 0.13.2 The problem happens both on local development and production mode in Fly.io The password set on Sign Up is not working after verifying in the link. But it works if I reset the password. I used the command wasp new with the option [3] as a head start. It worked in the beginning but it stopped....
No description

Error running the Todo App

Hi there, I have completed the tutorial for the TodoApp, but when I try to run the app I get an error (see attached). I realised that I had made an error in the MainPage.jsx file, so to be on the safe side I copied the code from the Wasp Github repository. But I'm still getting this error and am not sure why or where I should look to avoid it....
No description

Error when trying to add authentication

Hiya, I'm following the steps outlined in the Wasp tutorial to create a Todo app. I got to the final step, adding authentication (https://wasp-lang.dev/docs/tutorial/auth). I created a user entity successfully. However, in the next step (adding auth to the project), when I try to update the database schema by typing "wasp db migrate-dev" in my terminal, I get an error message saying "Complication of wasp project failed" (see attached)....
No description

Prisma Error Handling

I have a combination ID on a table to enforce uniqueness of entity relations. I would like to send the user a message based on the error returned by Prisma. Normally, Prisma library provides errors to handle this: https://www.prisma.io/docs/orm/prisma-client/debugging-and-troubleshooting/handling-exceptions-and-errors However, I am unable to import these Prisma errors to my server code. Is there a way to do this? Thanks....

Configure vite to resolve @ alias to src directory

Tried configuring like this and vscode seems happy with the path resolution but wasp doesn't, what am I missing? ``` // =============================== IMPORTANT ================================= //...

db seed verified email

I migrated from username auth to email. the email auth requires email verification. Now, when i seed the database, the Users that I created have unverified emails. How can I verify the emails of the records i see in the database during db seed?

Error on sending email to veirify account

It works on localhost (Dummy, Sendgrid and SMTP), I create an account and get the token link. But when trying to create an account after deploying on Fly.io wasp deploy fly launch <name> iad it doesn't work. Here are the browser console and network. The network returned 200 for the auth/email/signup and 204 for the preflight. The console only show unauthorized (401) on /auth/me, I think this was expected since I'm not logged in yet. The server logs returned ECONNREFUSED and __node_internal_exceptionWithHostPort on the port 587. That's not the port I configured in the .env.server file...
No description

First time wasp user, Unable to add super simple custom API

First time using wasp :) so it is probably user error. I am trying to add a basic API endpoint as follows. In app/main.wasp I have...

PATH PROBLEM WINDOW

I tried to install wasp but gets this error : root@DESKTOP-I24FTFQ:/mnt/c/Users/bilal/Desktop/SmartEkkoProject# wasp version Command 'wasp' not found, did you mean: command 'wash' from deb reaver (1.6.5-1)...

Best hosting services to deploy?

You cannot deploy a wasp project to ordinary hosting services like GoDaddy etc. So what are the suggested hosting services? Please suggest me couple hosting services...

What value does subscriptionStatus contain if its not past_due?

What value does subscriptionStatus contain when a subscription was paid?

Extending verifyEmail function

Hi, is it possible at all to extend some of the Auth functions? E.g verifyEmail, signup, etc.. I’m looking to add some additional logic after user has verified their email. I know I can create my custom verifyEmail component, however I don’t want to expose out a new Action that is visible to the user. ...

Derive username from userId

How can i derive the username using a user id? I have these entities: entity JobAd {=psl id Int @id @default(autoincrement())...

Connecting to socials

how can i keep the instagram login to this

Where can I find the code for the login form?

Where can I find the code for the login form?