Wasp-lang

W

Wasp-lang

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

Join

Deploying with Docker issues

I'm tryint to deploy the back-end with Docker on an Ubuntu box. I have the front end up via Apache, and the backend is reporting 404 on routes like /api/auth/me and /api/email/signup. I added a test route and I am able to hit it with curl via both localhost and the fully qualified DNS url - so that much is working. I went in and hacked the .wasp/build/server/src/server.ts to print the list of routes, and, it's pretty much empty. --------------------...

what are key steps on protecting SaaS endpoint used to retrieve valuable data from a chrome ext.

I am gonna make a chrome extension. I want to use an endpoint from my saas to retrieve valuable data through my chrome extension. Well do you guys have any recommendation on how to 1st of all make an auth system and 2nd of protect my SaaS endpoint such that only users with a subscription can use it. Maybe using slme token.

Access to Manage Subscription

I’m getting an error when I try to click on the ‘Manage Subscription’ link (in Account Information). Apparently, the variable REACT_APP_STRIPE_CUSTOMER_PORTAL is missing in my .env.server. I cannot find related information in the current documentation. Thanks for your help.

Referencing entities via enums

Hello, though there is support for creating enums in schema.prisma, it does not look like there is a regular way to access them from JS/TS code as they don't seem to be exported as wasp entities in wasp/entities. For example, I've defined this enum: enum OneToOneMeetingStatus {...

What's the maximum payload entity size in wasp?

I'm getting PayloadTooLargeError: request entity too large errors if I pass JSON files into a create action. I've been experimenting a bit and it seems like it's around 100kb, is there any way to increase that? Or is it by design

failed to fetch an image or build from source: error building

Hi Wasp Team, im getting this error while trying to deploy wasp opensaas template with fly.io : failed to fetch an image or build from source: error building: failed to solve: failed to parse stage name "node:-slim": invalid reference format Do you have any clue on how I could fix that ?...
No description

Sandbox demo

Wouldn't there be a way to create an online sandbox that runs the demo found at https://wasp-lang.dev/docs/quick-start Something like github codespaces could help try the snippets from that page instantly and I think it could be very cool What do you think about this ?...

AWS file uploading setup

I'm trying to setup file uploading with AWS following this documentation https://docs.opensaas.sh/guides/file-uploading/ and I'm at this part (first image attached) but I'm getting a lot of access denied errors. Sorry if this is a stupid question, but has anyone found a way around this?
No description

How to update data coming from `useQuery`

Let's say you have the following code in an app that has a model Author as well as model Book where each book belongs to one author... ```jsx import { getAuthor, createBook } from 'wasp/client/operations' function MyComponent({ authorId }: { authorId: string; }) {...

Error calculating daily stats

The calculation of the daily stats which i assume is an automatic process gives these errors: [ Server!] at getTotalPageViews (/home/sven/SaaS//app/src/analytics/providers/plausibleAnalyticsUtils.ts:49:11) [ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [ Server!] at getDailyPageViews (/home/sven/SaaS//app/src/analytics/providers/plausibleAnalyticsUtils.ts:28:22)...

What's the best way to make live updates to the deployed prisma database?

I want to update my admin user to test some bits. What's the best way to do this?

How to generate Authorization header JWT token for custom API endpoint?

I've created operation which generates JWT token which is sent to my chrome extension. ```typescript action generateExtensionToken { fn: import { generateExtensionToken } from "@src/auth/extensionAuth",...

Using Typescript on a Basic wasp project.

How do I configure a basic Wasp project to use typescript? Currently my typescript page is showing blank....

error with import: import { Routes, Route, RouteObject } from 'react-router-dom';

Routes and RouteObject are underlined in red, but im using the latest version "[email protected]" I can't seem to fix this problem

don't need to check this question only need kapa for debug :) will close after.

kapa I got an issue with the max width function "max-w-7x1" I need to overwrite this for my /webapp page so my own dashboard I need the full widht of the page and not limited by the max-w-7x1 styling. and that is 80 rem. but I can't find this styling anywhere in my folder. where can I find this and how can I overwrite this just for my /webapp page so it doesn't change for the landing page and stuff.

After running a database migration locally, all my database deleted - how to prevent in prod?

I did a necessary migration where I converted a property of an entity to be unique. The migration all appeared to go smoothly, but after testing I realised it had actually deleted all the data locally, so the database is empty aside from the tables I already set up. I want to be able to do this in production, but maintain my existing data. What's the best way?

onAfterLogin hook crashing the server

I'm trying to implement the v0.14.1 onAfterLogin hooks but after logging in with email it loads for like 20seconds and after gives error to the console. This error is logged out hundreds of times ```[ Server!] This is caused by either a bug in Node.js or incorrect usage of Node.js internals. [ Server!] Please open an issue with this stack trace at https://github.com/nodejs/node/issues...

wasp app wont start

I got on today and did wasp start today in my WSL console and now im getting this error.. anyone have any ideas?
No description

Organization management

can this be implemented here's an example i found https://saasdemo.rapidlaunch.xyz/ - Create Organization - Edit Organization - Delete Organization...

using the same navbar from the landingpage for the pricing page and removing the other navbar.

I wan't to only use the landingpage navbar, because my webapp will be a completely different UI with a different navbar. so I want the pricing navbar to be the same as the landingpage navbar. and don't use the other navbar. (i'll build a different navbar for my webapp but I need the fullscreen for it to look nice so not a navbar on the top the whole time and a vertical one on the left.