Wasp

W

Wasp

Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.

Join

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

WebSocket connection to 'wss://www.hatchmo.com/?token=cyXEuSJHPtqZ' failed: Error during WebSocket h

WebSocket connection to 'wss://www.<domain>.com/?token=cyXEuSJHPtqZ' failed: Error during WebSocket handshake: Unexpected response code: 200 createConnection @ client:802...

Custom authentication using phone numbers rather than email

Hello, I'd like to create custom authentication using phone numbers instead of emails where the user would simply get an OTP message to sign-up and sign-in. No need for passwords. Would this be possible? I understand this is generally out of the project's scope but any general guidance on how I would approach this would be really awesome....

Custom Emails and Auth Handling

I'm trying to create a door to door sales flow that creates a customer's account in the app, and then sends them a welcome email with a link to create their password. Does Wasp expose any internal methods to create password reset tokens that I can use in my own custom email sending logic? I don't want to rely on the Password Reset Request flow because it sends an email for Password Reset. Which is not the goal in this case.

Reset db

Is it possible to reset db on deployed fly io app?

auth problem while setting up a socket

I'm looking to set up a socket for notifications.. I'm attempting to use the wasp documetation (0.15) and I'm getting an auth error , I'm unable to ``` webSocket: {...

Organization users & Roles/Permissions

Find all relevant information about Organization users & Roles/Permissions

Problem building Dockerfile

Dockerfile Wasp generates contains this line:
EXPOSE ${PORT}
This is not defined as a build arg, so how can I set it? When I try to just build the image with podman build . I get this error:
Error: building at STEP "EXPOSE ${PORT}": EXPOSE requires at least one argument...

wasp-bin: script: streamingProcess: exec: invalid argument (Bad file descriptor) on wasp db migrate

Im getting this error after running wasp db migrate-dev on a project. Wasp Version: 0.16.6 node: v20.19.2. I have run wasp clean, deleted and reinstalled both node and wasp. It seems to happen across all wasp projects i create.