Wasp

W

Wasp

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

Join

Auth and Email Sending Issues

I'm using Wasp's built-in auth system, but when my user signs up using email and password, sometimes they cannot receive a verification email and therefore cannot signup. - I'm using Mailgun as the email provider - In most cases, they are using outlook and I've already seen many complains about the email deliverability when sending to outlook addresses since outlook rejects many emails (not even showing them in spam) if you are using a new domain. Therefore, I'm wondering:...

update wasp version

i have wasp version 0.15.0, how do i upgrade to the latest

verification link

Deployment webapp is providing verification links using the original .fly.dev URL that fly.io provides rather than my assigned url (e.g. mywebsite.com) - despite mywebsite.com working everywhere else. How do i change it so the email verification links start with mywebsite.com rather than the .fly.dev URL? It's not the biggest problem in the world but it is exposing the uglier fly.dev URL to users and it makes CORS more complex....

useLocation

Hi team, I'm trying to adapt my opensaas app to use SAHDCN-admin (which is not a wasp first code base) so there are places that we need to ensure the routes etc adhere to wasp standards and best practices. When I ask Claude for some best approaches it says the following: // Before (from shadcn-admin) import { useLocation } from 'react-router-dom';...

How to externalize the socket.io server?

I saw a previous post by someone that asked a similar question about externalizing the socket server. I've already open up the CORS setting on my server so that any client can send their requests. The thing is that using my postman debugger on the following uri doesn't give too much information: ws://localhost:3001...
No description

valid fly.io regions not being accepted by wasp?

This one is really puzzling me. Not sure if I'm making a stupid mistake. lhr is a valid region which is marked as live on fly - have also tried other regions e.g. mia
wasp deploy fly launch worrried lhr
$ flyctl version...

custom auth ui

If I create a custom ui for the authentication portion of wasp and using the hooks from wasp, do these methods defined in the main.wasp file still function? Or do I need to handle redirects on my own? onAuthFailedRedirectTo: "/login", onAuthSucceededRedirectTo: "/demo-app",...

Google Auth Missing "Scope" in production

I am getting a message in production when using oauth for google. I figured out this has come down to WASP not adding the scope param to the string is sends to google. This is working fine in development on machine and it puts on the proper scope=openid+profile+email. Any idea why this would be happening? It might be an initialization order thing since I am also using other google auth libraries. I think it is finding the client and secret fine, but the dev using .env file while the prod uses fly secrets. But been stuck on this one for a while WASP 16.5. Fly.io delpoy. ...

Modify server authentication logic

In the server code for logging a user in, this logic exists: ```js export function getLoginRoute() { return async function login( req: Request<{ email: string; password: string; }>,...

Issue externally connecting to Fly.io database

Hello Waspeteers, Not perse a Wasp issue, but figured I would try asking as I've been struggling to connect to my Fly.io database from trigger.dev. I followed this guide, without any luck: https://fly.io/docs/postgres/connecting/connecting-external/...

SMTP fails quietly when attempting to use MailerSend SMTP

wasp version 0.16.3 on WSL Checked terminal and console logs nothing, made sure to set .env properly and main.wasp...

Cors policy

Looks like I'm running into cors issues with deploying my app to coolify.
Access to XMLHttpRequest at 'https://apiurl/auth/me' from origin 'https://clienturl' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Access to XMLHttpRequest at 'https://apiurl/auth/me' from origin 'https://clienturl' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I've confirmed that I've setup my environment variables correctly and everything. I was looking at this: https://wasp.sh/docs/deployment/extras#custom-domain-setup, and am thinking that Wasp is supposed to handle cors correctly automatically. Is that correct?...

Possible unexpected caching in Jobs?

I have a job running every 5 minutes, checking for a row that hasn't been updated in the last 24 hours At the top level of the file i.e. NOT in the job function, I define it as such ``` const oneDayAgo = new Date(Date.now() - 1000 * 60 * 60 * 24);...

RollupError: Invalid value for option "output.file"

` Server ] [ Server ] > server@0.0.0 bundle [ Server ] > rollup --config --silent [ Server ] ✅ --- Successfully completed npm install. ----------------------------------------...

Stripe subscription price change

I have a Basic and a Premium product and both of them have Monthly and Annual pricing structures following the Good-Better-Best methodology. Let's say due to increasing costs, I want to raise the price of my Basic Monthly plan by $5 for all subscribers. How can I increase the price of the subscription, and begin charging all current and new subscribers that higher price? From what I understand, Stripe pricing is immutable, but this is not an uncommon thing in the subscription industry. Example, Netflix increased its pricing for everyone earlier this year. '...

Authentication

I am working with open saas template. 1) Not authenticated after login. 2) All protected API requests failed with 401. 3) The login flow is not setting a session cookie. 4) Unable to collect data with forms. HELP.

Checking for an empty array as a column in a row

I have a schema with a column called "creators" which is an array. I want to only return rows that have >0 items in the array ``` const result = await context.entities.MyEntityTable.findMany({ where: { id: { in: inputString.split(',').map((id: string) => +id) }, creators: {...

PG Boss Concurrent Jobs

Hi everyone 👋 I’m using Pg-Boss jobs in Wasp (0.16.x). Right now only one contentGenerationJob runs at a time, even when multiple users queue drafts. ...

How to do VibeCode for Open-SaaS

I want to connect/import open saas project in Bolt or any AI ide I want some guidance on what Docs or pdf should we upload so that the AI can understand what we are using which technology