Wasp-lang

W

Wasp-lang

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

Join

Replacing Wasp's Auth UI, while keeping the functionality

Hey, I want to replace Wasp's Auth UI with my own UI for Auth. I'm using email auth, so I want to replace the Signup Page, Login Page, Password Reset Page, Email Verification Page, etc. However, I want to keep the entire functionality that Wasp has built in with email auth. How can I best do this? Also I want to have additional signup fields present in my signup form. Can anyone help me on how best to do this?...

Accidentally deleted database url from production environment while debugging - how to proceed

I have been debugging an issue and inadvertadly deleted my database url from my production environment whilst debugging a different issue. What's the best way of retireiving it?

Ios abb subscription and login auth

How would I make a user authorized to use an ios app if they have a certain subscription? Also how would I do this with login....

Strugle with Dark/Light mode (AI-Created React components)

Hi! I'm using chatgpt/claude to create the React (using Tailwind) pages. In this case I have a custom project with ALL files from Wasp Docs: https://wasp-lang.dev/docs But as you can see, when I switch theme. Some things are incorrect (in terms of style). I'm doing something wrong promting my AI?...
No description

Problem running npx shadcn-ui@latest init in WSL Terminal

I'm following this guide to set up OpenSaas in the template/app directory using Wasp and WSL (Windows Subsystem for Linux) as per this guide https://docs.opensaas.sh/start/getting-started/. I'm trying to integrate ShadCN following this: https://gist.github.com/infomiho/b35e9366e16913949e13eaba0538f553 I've followed everything as per the instructions(left the existing tailwindcss files intact), but when I try to run: ...

Issue deploying with secrets

wasp deploy fly deploy cmd --context server secrets set $SECRETS This is giving me an error - error: unknown option '--context' The secrets are correct for sure - I am following this guide https://wasp-lang.dev/docs/advanced/deployment/cli...

How do I connect to the postgres db deployed on fly?

I deployed my aspp using wasp deploy fly deploy and i want to see the data in the db, how can I do that?

Passwordless Authentication

I saw a a post asking whether wasp supported passworldess authentication in March and it wasn't supported at the time. Has anything changed since then and if not does anyone have any good ideas as to how I can add the passwordless auth in myself and have it seamlessly integrate with wasp?

Apollo GraphQL

Hello How can I use Apollo in Wasp? ``` import React from 'react';...

Is vitest compatible with wasp (vite)?

During vitest install I keep getting following error: ``` [ Wasp !] npm warn ERESOLVE overriding peer dependency [ Wasp !] npm warn While resolving: @vitest/[email protected]...

Stripe and Multiple saas

Hello guys. I have one question. For the guys who know the answer specially those who have launched multiple saas. I am about to launch my second saas and I was wondering about the stripe part. Do I have to create a whole different account or within the account I have there is a way of creating something like organization??? I was reading the docs and some post from people with same question but somehow none of the answers make sense for me. So I decided to ask here, maybe some that have face it could share the experience and the process would be more straightforward for me....

is there a way to hard restart the app? if i change an api file need to restart manually

if i change a backend or api file wasp wants me to go manually restart, anyway around this requirement? can i set up my own nodemon?

websockets - emit event from server

Hi guys! I integrated websockets following the guide at https://wasp-lang.dev/docs/advanced/web-sockets. It's not clear to me how to do an emit in an operation (therefore on the server side). ...

Custom Email with Loops

How would you recommend implementing the Loops (https://loops.so/docs) email service within Wasp? Our team prefers Loops over Mailgun or SendGrid and we would like to take advantage of the email auth provided by Wasp. Is there a preferred solution to accomplish this? I've attempted the SMTP route, which Loops supports (https://loops.so/docs/smtp). However, I continue to receive a 450 error when setting the requested body to auth.email.passwordReset.getEmailContentFn to send the Loops Transactional email. See pics for code. Am I do something wrong with this method or is there a better way to approach this? It's worth noting that the email content is created and sourced from Loops so bypassing the coded email content from Wasp is key here. ...
No description

Is there a way to test run a job with a command in wasp?

I'd like to test a script that I wrote but as it only runs once a day it's not practical. I could try and use it in a different file but wanted to check if there was an easy way first

Use Astro for Docs (but other thing for Blog)

I am trying to understand how I can use something “extra” (excuse some non-tech terms), some other library or similar to not use what is Astro for Blog. I will use Astro for Docs because the layout is ideal but I would like to be able to use it as a different “layout” from the blog frontend. Any recommendations? Can you modify in Astro things as if it were a “Theme Builder” like Divi, Astra, etc... For wordpress? ...

Recommendation for deploying and database

Hi I have been thinking about the deployment of my app and the database. I currently already have a postgress database running with lots of data in it (but i dont use it yet in development). What i did with development now is add these exact tables that are in the "actual" postgres database in the "development" database through the prisma scheme (for testing purposes). Now I have been thinking on what to do when deploying my app: 1. Add the Models (tables) that are in the "dev" table to my own database, that are not there yet like: Auth, AuthIdentity etc....

How to become friend of da boi

As title states, how one becomes friend of da boi?

How to correctly use queries

as title says, I've been trying to implement some queries to know how everything works, but having some doubts: - I want to fetch some files located on the server side, what's the recommended path to locate these files? it works, but process.cwd() returns me .wasp/out path and idk if I should keep it or change to @src/server/files or .wasp/out/server/src - Are operations on openSAAS used like queries.ts? there's no difference right? - it works for me without using entities, if I use them, it gives me unexpected token (I'm using them wrong ik), should I figure out and use them? Maybe if I'm handling with files and not objects in some db it's different...

How to keep client credentials for a third party platform safe

The users of my SaaS are using a third party platform to sell goods, now this platform offers an API to which we as software can connect to using the clients credentials. It consists of a client-id and client-secret, which both can be found in the users account. Question: How do I keep these safe and also stored optimally, such that the Software can easily use the credentials per user and doesn't accidentally use the credentials of another user?...