Wasp-lang

W

Wasp-lang

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

Join

Facebook Auth

Hello everyone, did anyone manage to implement Facebook auth? Is it possible? Google auth doesn't work if the link is opened within Facebook for some reason, and email auth is a bit too hard (my target are not super young people), meaning that you need to add credentials, the email to verify your email goes always in spam, and if it's spam the link to click to open the app and verify is hidden, then if you manage to click that, you need to login by re-entering the credentials. Are there ways to make the process more frictionless?...

Can I swap out Stripe for my country-specific payment processor alternative?

The thing is Sripe is not used where I am from. Can I swap it out?

Migrate Waspello to 0.14.0 not functioning

Hello everyone, I pulled the updated repository that migrate Waspello to 0.14.0. I tried to add the definition of entities including 'User' from schema.prisma to main.wasp, but it still not functioning properly. Could anyone check if there are any steps I've missed? Any additional guidance or suggestions would be greatly appreciated. Thank you!

Did anybody manage to get particles.js to work as a background by any chance?

I have been trying the entire day yesterday to make particles.js work but never got there. What i tried was installing https://github.com/VincentGarreau/particles.js...

How do you use Fly.io (Best Hosting for wasp) for free?

OpenSaas team suggested me fly.io, I have successfuly deployed service to their server, but with out a trafic, it costs me 0.83 dollar, while it was active for the weekend. I remember that fly.io fast free? How to use it for free?
No description

Issue with creating jobs/workers

I want to create jobs/workers for functions that use external APIs such as OpenAI so they're also processed if the user closes/refrehes the page. Example: For an outline creation function I have created: 1) a job definition in the main.wasp:...

PGboss error on Linux server

Hello everyone, does anyone what is this problem when I want to run PGBoss on my server but it is working well on my local, I get this error:
pg-boss failed to start! error: no pg_hba.conf entry for host 10.1.143.190 , user octopus , database wasp_f994d74c_2fa3_4b4c_b3a6_bdaeee9f1ff8_40dd0d3a_28a9_4ea9_a2 , no encryption...

Cannot Access dB once Deployed...

Hi, all! I'm running into an error with any Wasp apps that use a dB after deploy. During development on localhost, the wasp client and server work just fine and the server connects to the dB (running on Supabase) just fine. The app works just fine. BUT THEN: I deploy the app and run into errors with the dB. The wasp server and client work with any page / function that does not call out to the dB. But when accessing the dB while deployed, I just get errors. I have my own servers I rent from Hetzner and am using Coolify to deploy. Once again, the server and client work fine and any page that does not use the dB loads up just as one would expect. Trying to log in gives me a "405" error when accessing the dB. Thinking the problem might be Coolify, I decided to deploy on Fly.io. This time, I get a "network error" when accessing the dB instead of a "405" error. THEN, I tried using the Postgre dB that Fly.io offers -- STILL get a "network error" when the app accesses the dB. My DATABASE_URL is properly set both on my Coolify instance and when I tried it on Fly.io. I have no idea what is going on. When running locally the app calls out to the Supabase db just fine, with no errors. I have spent several hours trying to debug this problem and all I have done is waste time and energy. Currently, I am only replicating the "Todo" app from the Tutorial -- so this is not some big and complicated App. I really want to use Wasp instead of having to learn Next.js....

What is the API endpoint in production?

My development environment has port 3000 for the app and 3001 for api. When I deploy to production the site works but the API endpoint does not seem correct. What is the API endpoint in production?

Need help incorporating existing project into this template

hi guys, this is my first time using Wasp, how do i incorporate my existing project into this template?

SubscriptionStatus and subscriptoinTier not getting updated in stripe test mode.

The subscription status and tier are not getting updated on default in stripe test mode. Is this expected behaviour? Will it work in the live mode, or does it have to be set up first?...

type declarations

Cannot find module 'wasp/client/router' or its corresponding type declarations.ts(2307) how do i download the type declarations...

Github actions failing with "OpenAI API key not set"

Tests work in development but failing in Github. Checking doc to determine how to safely provide keys. ```[WebServer] [app][err] [ Server!] OpenAI API key not set. Please set the OPENAI_API_KEY environment variable. [WebServer] [app][err] [ Server!] /home/runner/work/mysponsorapp-wasp/mysponsorapp-wasp/app/src/server/actions.ts:76 [WebServer] [app][err] [ Server!] throw new HttpError(500, "OpenAI API key not set. Please set the OPENAI_API_KEY environment variable."); [WebServer] [app][err] [ Server!] ^...

Migrate db in Production fly.io

Given that I have a wasp app I deployed to fly.io, what are the steps I need to do to make sure changes to entity schemas are reflected in Production database? Additional questions: 1. Has anyone deployed db changes to an already deployed app and can share common pitfalls? 2. Is there a wasp db migrate-dev equivalent such as wasp db migrate-prod?...

fly.io frontend keeps crashing

hey folks, my fly.io deployed app keeps crashing, not sure why, I don't even know how to begin investigating why it keeps crashing, it says its suspended in the fly.io dashboard and these are some recent logs

user.subscriptionStatus and user.subscriptionTier are not set

I've set up Stripe and can buy the test product using the right price ID. User.StripeId and User.CheckoutSessionId are properly set in the database. I successfully get to /checkout?success=true afterwards. But user.subscriptionStatus and user.subscriptionTier are not set. I've also checked the event data in Stripe, for example the checkout.session.completed is properly shown. ...

Link Components having typescript errors when linking to a path with a slug

When I try and use the "to" prop of a Link component, I get a typescript error on wasp start saying that it is not of the correct type if it contains a slug - eg profile/123 fails as the 123 is dynamic. What's the best way around this?

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/...