Wasp-lang

W

Wasp-lang

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

Join

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?...

User is logged out quite quickly

Hi there, is there a way to avoid that users are logged out quite quickly? Often, it happens that users have to log in again after a short time....

Installation failed: There is no wasp version 0.14.0

I'm trying to install the latest version but I'm getting this error, I'm using ubuntu in WSL.
No description

GLIBC_2.29

Hello i have problem my Wasp say : .local/share/wasp-lang/0.14.2/wasp-bin: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /home/*/.local/share/wasp-lang/0.14.2/wasp-bin) can you help me ? Thanks

Koyeb Issues

Are you familiar with koyeb?

How do i use the darkmodeswitcher component from the template in my other pages?

How do i implement the element specifically to let it work

Google auth redirects to fly.dev domain instead of custom domain

After deploying my app, when I try to sign in with google, I am reditected to https://my-application.fly.dev/auth/google/login instead of https://my-application.com/auth/google/login I have changed the WASP_SERVER_URL to point to my custom domain...

Zero length key (google auth) ??

Hey I get the following errors out of nowhere, and I have no clue how to debug this, any ideas how to proceed? ``` DOMException [DataError]: Zero-length key is not supported...
No description

Locally hosting two wasp projects at once

Hello! I'm trying to host two wasp projects locally (open on network) but it's deploying them on the same IP adresses. Is there any way to change that?

Redirect to a specific page after signup

I want to redirect new users who have signed up to a payments/pricing page so they can pay. How can I do this?

print wasp documents? (irl)

Hi guys, I'm sorry this is not a technical question haha, but I like to keep my important stuff irl and I wonder if it's a pdf or a download mirror to the documentation? I prefer not to print the web view of the docs

When trying to perform a database action i get network error. Also when trying to register

When i try to perform a database action or register an account i get network error. I did
wasp start db
wasp start db
``` PostgreSQL Database directory appears to contain a database; Skipping initialization ...