Wasp

W

Wasp

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

Join

Using ssl cert references in DATABASE_URL leads to pgBoss requiring custom cert env data

Im providing a custom ssl cert to the wasp app for postgre connections, which works fine with prisma. The issue arise when pgBoss needs to connect with custom ssl cert, as it is not configurable via the DATABASE_URL like prisma, but instead requires the environment variable PG_BOSS_NEW_OPTIONS to be set with a specific json structure containing binary cert data. This is not secure, and frankly unmanagable. How can this be worked around professionally (without having to manually edit pgBoss.ts file in production)?...

Wasp app behind reverse proxy does not request correct server url

Im using a custom docker stack with two containers, one node and one nginx with static app files and they are properly built and setup inside their respective containers with all necessary environment variables etc and this setup works for a locally built app with the proper backend urls - like so: https://internaldomain.com/srv/. When deploying to an external host, the frontend static files want to connect to http://waspbackend/auth/me which is the upstream internal target host. I'm curious why my backend seem to provide its internal host name to the frontend, when I have clearly set the url with REACT_APP_API_URL during the build step of the wasp node app. As my current deployment method is seemingly unusual, maybe there is something Im doing wrong here? Please advice....

wasp start for first app

I built my first saas based wasp app per the instructions, ran it with wasp start and it displayed an error at the end (but the app seems to be up). The following was displayed at the end. Why is this happening?
[ Server ] Starting pg-boss... [ Server ] pg-boss started! [ Server!] Port 3001 is already in use...

Style

How do I change the font in the login and signup page which use stitches and are in the wasp.out dir

Fly Prod Deploy - ...not listening on the expected address and will not be reachable by fly-proxy.

I have seen the below error as I run wasp deploy fly deploy (both initially + subsequently). It seems like my app is working fine but wonder if this is an issue I need to address. I have not manually changed any of the fly-client.toml or fly-server.toml, which shows internal_port of 8043 and 8080 respectively since they are automatically generated, which I believe contributed to this issue. Per Fly's troubleshooting doc, it looks like I would need to update the toml docs, but before I do that I want to make it won't mess with anything as those files are currently automatically generated....

Deployment issue on Railway

I'm experiencing an issue with my Wasp app deployment that started after the recent Railway update (April 4 changelog). My app was working fine before, but now deployments are failing with this error: pg-boss failed to start! error: role "u9o4bahro8glkv" is not permitted to log in The strange thing is, when I check my database using \du and SELECT rolname, rolcanlogin FROM pg_roles;, this role doesn't exist in my database at all. The only role with login privileges is "postgres", which matches my DATABASE_URL connection string (postgresql://postgres:[email protected]:XXXX/railway)....

Best approach for associating pre-registration data with user accounts after Email/Password + social

Hello everyone, I need some advice on the best procedure to implement this functionality: I'm developing a system where users answer questions before registering. The responses are saved in the database with a temporary ID generated by the client and stored locally. Later, when the user completes registration (using Email & Password or social login methods), I want to associate those previously saved responses with the newly created user account. What's the most correct way to handle this association? ...

Cannot find module

Hello i am trying to run a migration to an existing project that is newly installed on my laptop and keep getting errors such as: [ Wasp ] auth/useAuth.ts(8,32): error TS2307: Cannot find module '@tanstack/react-query' or its corresponding type declarations. [ Wasp ] client/operations/hooks.ts(9,8): error TS2307: Cannot find module '@tanstack/react-query' or its corresponding type declarations. [ Wasp ] client/operations/queryClient.ts(1,48): error TS2307: Cannot find module '@tanstack/react-query' or its corresponding type declarations. [ Wasp ] client/test/vitest/helpers.tsx(7,50): error TS2307: Cannot find module '@tanstack/react-query' or its corresponding type declarations....

Login user through the backend

Is there a way to trigger user login through a server side(backend) login function? My usecase is that I have a wasp app running in an iframe of a parent app and I want a user to login if a certain user role is passed from the parent app to the wasp app.

Disable login for a user after X number of failed attempts

Wasp version: 0.16.3 Platform: macOS I'm looking for a way to disable logging in for a user that has 3 or more consecutive failed login attempts. ...

API auth with a Chrome Extension (third party)

I'm building a Chrome extension which makes Auth calls to my app's API. What this extension does is to access the local storage to get the wasp:sessionId and with it make the API calls. The problem I have is that I need to have the app page open to access the wasp:sessionId....

verification emails not sent

when a user signs up, the verification email isn't sent. however, if they request a password reset, that email is sent. so email in general is working, but the verification email isn't. as you can see in the logs, there are no errors. any ideas?...
No description

error

Uncaught TypeError: Cannot set properties of undefined (setting 'displayName') at chunk-R5CONI5L.js?v=a1cd3980:10214:25...

Re-Deployment issues with Fly.

Trying to re-deploy a project and running into this problem, at the client deployment ❌ --- [Error] Building of wasp project failed: ----------------------------------- 1 errors found....

Question from a beginner

Hi everyone 👋 I just discovered Wasp and SaaS template. I really like it, it is super easy to build something new from scratch, and the learning curve is pretty low. I'm a BE engineer with experience primarily in Java and Go. However, thanks to your great documentation, it is not too difficult to figure out how to work with your tech stack. I plan to build my mini SaaS based on Wasp. However, I have a concern. Wasp is doing a lot of magic. It makes FE and BE work together without all the usual overhead. If, at some point, I decide to migrate away from Wasp, how difficult would it be? Does it mean that starting with Wasp today, I will have to stick to it forever? It is a new framework, so seeing what would happen with Wasp and project support in a few years is difficult. ...

Test fails due to unresolved "@tanstack/react-query" import

I'm trying to run a simple test using Vitest with Wasp (version 0.16.2), but I keep getting this error: [ Client!] FAIL src/tests/components/AppLayout.test.tsx [ src/tests/components/AppLayout.test.tsx ] [ Client!] Error: Failed to resolve import "@tanstack/react-query" from ".wasp/out/sdk/wasp/dist/client/test/vitest/helpers.jsx". Does the file exist? [ Client!] ❯ TransformPluginContext._formatError node_modules/vitest/node_modules/vite/dist/node/chunks/dep-Dyl6b77n.js:49258:41...

Has anyone tried replacing WASP authentication with Auth0?

Im using WASP version 0.15.0 on WSL with Ubuntu Would attempting this mess with the rest of the framework or compiler? I’m building a security app and outsourcing this service for their brute force protection and MFA options would be super helpful as we scale up....

need a way to have different emailsender in dev and prod...

right now, when developing locally, i have to set the emailsender to dummy. then, before deploying, i need to set it to smtp. then, when running locally, back to dummy. over and over. sometimes i can do multiple deployments in a day, so this is significant friction, and if i forget, the prod environment will be set to dummy. there needs to be a way to have a main.wasp and a main.wasp.prod or some such, with the settings in the latter file overriding those in the default (dev) file. or vice versa, the mechanism doesn't matter as long as it's possible. thoughts?...

Vite error

@kapa.ai I'm getting this error [plugin:vite:import-analysis] Failed to resolve import "@wasp/queries" from "../../../src/pages/Alerts.jsx". Does the file exist? /home/brad/route01/app/src/pages/Alerts.jsx:3:25 18 | import React, { useState } from "react"; 19 | import { Link } from "react-router-dom"; 20 | import { useQuery } from "@wasp/queries";...

How to add a discount code to OpenSaaS Stripe checkout page?

How do I add a discount code field to my payment processing on OpenSaaS when using Stripe?