Wasp-lang

W

Wasp-lang

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

Join

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

Stripe multiple product or multiple prices

My saas has 3 different prices, weekly, monthly and yearly. Should I creat 3 different products in stripe or one product with different 3 prices. I never did it before, so sorry if it sounds stupid.....

Errors in deployment to fly.io

I'm encountering an error after this execution
flyctl postgres attach my-wasp-app-billowing-dream-1046-db -a my-wasp-app-billowing-dream-1046-server
flyctl postgres attach my-wasp-app-billowing-dream-1046-db -a my-wasp-app-billowing-dream-1046-server
which is right after
wasp deploy fly launch my-wasp-app mia
wasp deploy fly launch my-wasp-app mia
. How can i fix these errors The errors are the following:
Error: failed retrieving app my-wasp-app-billowing-dream-1046-server: Could not find App "my-wasp-app-billowing-dream-1046-server"
Error: failed retrieving app my-wasp-app-billowing-dream-1046-server: Could not find App "my-wasp-app-billowing-dream-1046-server"
...
No description

How to invalidate a query

I have a query, and on button click it uploads a file to s3, now i need to invalid the query so it auto-runs and displays the file(s) back.

Getting an error trying to get an existing wasp app started

when I run wasp db migrate-dev on an existing wasp project I have NPM installed, it gives me this wrror [ Wasp ] auth/providers/types.ts(11,37): error TS2694: Namespace '"/Users/fatima/Downloads/app-main/node_modules/.prisma/client/index".Prisma' has no exported member 'UserCreateInput'. [ Wasp ] auth/utils.ts(131,17): error TS2694: Namespace '"/Users/fatima/Downloads/app-main/node_modules/.prisma/client/index".Prisma' has no exported member 'AuthWhereInput'. [ Wasp ] auth/utils.ts(192,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'....

Running into an issue with importing generated .wasp actions directory

I'm not sure why this happens, but seems like any time I modify the actions.js file or the function that invokes the action, I get this error on recompilation: [ Server!] node:internal/modules/esm/resolve:259 [ Server!] throw new ERR_UNSUPPORTED_DIR_IMPORT(path, fileURLToPath(base), String(resolved));...

Why my client fly.io seems inactive?

My client in fly.io seems inactive, but others seems active (server and db) why?
No description

Updating and redeploying Postgres DB in Railway

Do I have to manually update/redeploy the Postgres database in Railway? I've reployed the app but the new Prisma schema is not reflected in the database. On top of this, I'm also having this problem after redeployment again: Access to XMLHttpRequest at 'https://server-production-....railway.app/auth/me' from origin 'https://...' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. ...

Usage of getEmail

Maybe I'm missing something, but why does the getEmail() helper (see https://wasp-lang.dev/docs/auth/entities#getemail) only return an email address when the user has signed up using the email auth identity? I would expect it to return the user's email address for both social & email login types. My app offers both google & email auth logins and I would like to use this helper function to get the email address for all login methods. Currently I need to check which auth method the user has signed up with to know how I can use their email address....

Give certificate to server or client (using fly.io)

I am using fly.io. I deployed my code to a URL. However I would like to map my domain to that URL. So, I would like to know several stuff, What does this command do? It should be server or client? fly certs add requestphotoedit.com --app mycoolapp-server Is it required? Or only putting A entry as below is enough?...