Wasp

W

Wasp

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

Join

Google Analytics Reverse Proxy

How? I feel some inconsistency in my Analytics numbers and some traffic analysis tools. Also, my traffic may be coming from places where there is a possible adblock.

Broken generator

I'm attempting to configure a third-party generator in my instance. On the first attempt, setting provider = prisma-docs-generator produces the following compilation error: ```sh [ Db ] Environment variables loaded from .env [ Db ] Prisma schema loaded from ../db/schema.prisma...

Replacing the opensaas demo app with my own.

@kapa.ai I am making an app using the open SAAS template. I made my custom app with mage and attempted to replace the demo app code with the mage code. I changed it everywhere. When I ran wasp start it wouldn't compile because it said it was missing the demo app code. What did I do wrong?

Skip email verification for users invited via email.

In my app, users can invite someone to join their organization via email. I’d like to make it so that invited users don’t have to verify their email address once they sign up, as they have already clicked a link in their email. After doing some research, and reading questions posted in this discord, it seems like this is not supported by wasp. It seems possible if I could generate an AuthIdentity and verification token at the time the invitation is sent, then add the token as part of the link sent in the invitation email and verify it when the user lands on the page I link them to. I’m just not sure how to make the ends meet. Any insights?...

wasp start db fails inside CI pipeline

We are attempting to run some automated tests against our wasp app inside of a Bitbucket pipelines step as part of our CI automation. wasp start db fails start due the the volume parameter on the docker command docker run --name wasp-dev-db-OpenSaaS-f93feb5239 --rm --publish 5432:5432 -v wasp-dev-db-OpenSaaS-f93feb5239:/var/lib/postgresql/data --env POSTGRES_PASSWORD=postgresWaspDevPass --env POSTGRES_USER=postgresWaspDevUser --env POSTGRES_DB=OpenSaaS-f93feb5239 Bitbucket pipelines rejects...

redirect after login

After logging in, I'd like to route to a profile page if the user has not yet finished profile setup. Otherwise, they should go to the dashboard page. How do I fork this routing?

Optimial way of handling two types of users (authorisation)

I have two types of users, who can all do some operations, but each have their own unique set if pages/operations they can complete. For the operations, I am adding a simple check against their property, and I am redirecting off unauthorised pages manually. What I'm primarily asking is that if there's a simple way of blocking access to all routes matching a certain pattern unless a user matches certain requirements? Eg users marked as "creator" should only be able to access routes that are under "/creator/"...

How can I edit the Auth login/logout screens?

Sorry if this has been asked already, I tried searching but no luck. I am trying to edit the login/logout inputs, text, and styles but it looks like it is being imported like so:
import { LoginForm } from "wasp/client/auth";
import { LoginForm } from "wasp/client/auth";
since everything is being imported from wasp client how do we have control over the styling and updating any of the text? Its my understanding that is is build directory and probably shouldn't be edited....

Bluesky oauth

Has anyone setup Bluesky Oaoth yet I'm looking through https://discord.com/channels/686873244791210014/1260809637603708979 and can see Riot Games was integrated, but any tips would be helpful...

<pre>Cannot POST /payments-webhook</pre>

Getting this error on production with openssas template : <pre>Cannot POST /payments-webhook</pre> Can you please help me to fix it ?...

Custom Job ReferenceError: process is not defined at config.ts:41:20

``` job processCsvData { executor: PgBoss, perform: { fn: import { processCsvData } from "@src/client/operations"...

Types

[ Wasp ] ext-src/products/operations.ts(97,42): error TS2339: Property 'Product' does not exist on type '{ Review: ReviewDelegate<DefaultArgs>; }'. why am i getting this error? How should i create the entities?...

Signup/Login missing in deployed Wasp app

I'm using the OpenSaaS template to translate my research Python scripts into a SaaS webapp. I am using Wasp v0.15.0 and am developing on macOS with Apple Silicon. Everything works locally, including email signup, login/logout and access control to certain areas of the webapp based on subscriptions status or plan. However, when I deploy to fly.io following the Wasp Deployment guide, one part of the webapp does not work: in my local version, there is a login button in the top right corner of my landing page that, once logged in, turns into a dropdown menu that displays the user email address as seen in the first picture. This part is completely missing in my deployed app as seen in the second picture. During deployment, the terminal output did not hint at any big issues except for this (for the server application), even though I do not think that this causes the described behavior:...
No description

Volume purchasing instead of subscription/credits

I want to sell pears and apples. My users can buy 4 pears and 3 apples from me. Pear is a Stripe product....

When switching tab i get logged uit

When switching tab on my prod site i get logged out and have to log back in again. this happens every tab switch.

Inviting Users

I'm using Wasp on a SaaS solution that each account/organization can have 1 or More users. How can I implement this solution? Letting admin users invite other users? The desired solution would be to have an invite email sent to the new user so he/she may create a new password upon first sign in.

I changed the name of my app and some domain settings

Does chaning the name of my app result in loss of database entries in development and also in production? When i changed this i got this error: ``` [ Server ] GET /auth/me 500 13.951 ms - 1330 [ Server!] PrismaClientKnownRequestError:...

Change server url

Hi how could i change the server url to which the client makes requests now? I setup a custom domain and want the client to use my custom server domain instead of the .fly.dev

how to pass through a json response from the server to the client without using react component

how do I pass through a json response from the server to the client without using react component. Example: if client is hosted on port 3000 at client.com, and I have an api endpoint hosted on port 3001 which the client is using...

User context

How do I add contexts for different types of users? For example user type a (normal user), user type b and user type c (both with a dashboard like admin)?