Wasp-lang

W

Wasp-lang

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

Join

Reuse auth from wasp/opensaas in other apps

I plan to create an extension to complement my app. Has anyone done something similar or had a way to use the session/authentication of opensaas/wasp app auth

Sendgrid Error

const info = await emailSender.send({ from: { name: name, email: "[email protected]", },...

Switching wasp version, and/or running in Docker

Is there a way to switch wasp version, just like nvm for example? I can't seem to find anything from the docs -> https://wasp-lang.dev/docs/general/cli#miscellaneous-commands Have anyone tried running everything inside a docker container? based from my understanding only the database is ran in docker...

Trying to run wasp over https locally, permission denied

I'm trying to run wasp over https locally to test oauth that requires https. I tried using the plugin-basic-ssl that comes with vite like so and it actually worked for a bit, but I had to run sudo wasp start to get it to work. When i tried running it again I got issues with not being able to find some of my modules and it seems something odd is happening when building wasp with sudo. If i run without sudo I just get this error: ``` [ Client!] error when starting dev server: [ Client!] Error: listen EACCES: permission denied 127.0.0.1:443...

Documentation for `login` action

Is the documentation for the login action perhaps incorrect? The API reference at /auth/username-and-pass#1-using-the-signup-and-login-actions shows that the function takes username: string and password: string, but the member exported from wasp/client/auth shows that it takes data: { email: string; password: string } Wasp version: 0.13.2...
No description

change what port wasp is listening on

hey all looking for some help - i am on linux system if relevant (inb4 i use linux) really simple i think - starting up my wasp app for first time, i cant
wasp db migrate-dev
wasp db migrate-dev
because ...

Undefined identifier: User

I am updating v0.13.2 to v0.14.0 and got the following error after following the migration guide: ``` 1 errors found: - /Users/rbatista19/Documents/VSCode/MeetingReminders/meeting-reminders/app/main.wasp @ 32:17-20 Type error:...

Help: path:"/" to: "pubilc/index.html"

How to route the path:"/" to the index.html file

streamingProcess: exec: invalid argument (Bad file descriptor) error

I am getting a wasp-bin: /home/~path/app/node_modules/.bin/prisma: streamingProcess: exec: invalid argument (Bad file descriptor) error when I run wasp db migrate-dev before starting the app even first time. node version - v22.5.0 npm version - 10.8.2 wasp version - 0.14.0...

Is there a way automatically navigate to another page

Hi, i want to add a logic in login and register page if user already loginned then login page must navigate to main page const { data: user } = useAuth(); i can get users data to check if user loginned or not but i can't find any thing in documentation for auto navigation like useNavigate...

Can I stop server or db machines?

I ran default configuration for fly.io setup. My website is working with out any problem. However even with lowered memory settings, (256 MB mimunum for each app) fly.io cost a lot of money. It won't be free with 3 different default machines as below: I know that wasp creates client db, and server, but it cost more than 5 dollar which is the minumum money fly.io free version. Can I close server or db with out any problem? Or what is the suggested method in here?...
No description

Building SDK error

Hello! I'm trying to set-up a starter template via WSL. All good and dandy until i tried to start and got this error: 🐝 --- Building SDK... ------------------------------------------------------------ ...

Supabase Auth

Hey, guys! Have anyone tried to setup WASP/OpenSaaS with Supabase Auth? I was reading this article here https://supabase.com/partners/integrations/prisma and trying to work on this but I confess I got stuck. ...

Multi-Schema support for Postgres

How do I configure postgres multi schema support? Here's the link to the prisma docs: https://www.prisma.io/docs/orm/prisma-schema/data-model/multi-schema...

Guidance to hosting and putting a domain on wasp

Hey there, I'm currently using the openSaaS template and was wondering how I can link this to a DNS? I've purchased a domain name but was unsure how to host the wasp SaaS on that domain? I've tried cloudflare hosting, namecheap and vercell but all of them had problems with it. Anyone got any guides/tutorials I could follow, I'd really appreciate it. Thanks!

DATABASE_URL var not found when deploying to Fly.io

I'm deploying my first OpenSaaS Wasp app, but I'm running into the following error during the deployment process: [ Db !] Error: P1012 [ Db !] [ Db !] error: Environment variable not found: DATABASE_URL. [ Db !] --> schema.prisma:4...

How to deploy openSaaS wasp project on Porter.run using github repository

Since .wasp folder is in git ignore, I am not not sure how to deploy

How can I offer a free trial?

I'm using the OpenSaaS template and would like to offer a free trial. I can set up a free trial as part of a payment link but haven't found a way to link it to the code. Should I simply use the payment link JS code provided by Stripe and the replace the particular button in the app? 🙂

Sendgrid is not sending sign up emails

I have set up sendgrid in my app. The sender authentication and domain authentication is verified. Both the email fields in main.wasp are populated correctly under auth and email sender. However when I am testing creating a new account locally, I get a 200 from the app terminal for POST /auth/email/signup 200 but I do not see any api request in sendgrid, and the sign up account doesnt get an email.

the User query instead of the Auth user

User query instead of the Auth user