Wasp

W

Wasp

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

Join

Disable Database

How to disable database? I am building an APP that just proxies API calls to Gemini and do not intend to store any data.

@kapa.ai where in the open saas template is the section to add to the prisma schema

trying to add some fileds to my prisma schema in the open saas template. i can't find the file for the life of me.

AuthUser in Server

How do I get user data or user session from within a server file?

Failed to load resource: net::ERR_CONNECTION_REFUSEDUnderstand this errorAI:3001/auth/me:1

@kapa.ai Failed to load resource: net::ERR_CONNECTION_REFUSEDUnderstand this errorAI :3001/auth/me:1

Failed to load resource: net::ERR_CONNECTION_REFUSEDUnderstand this errorAI...

Is there a way to redirect a user after successful auth to a dynamically defined URL?

Instead of static onAuthSucceededRedirectTo, I'd like to move the user to say something like /profile/<UUID>/settings . Should I use a server redirect instead?

static media not working

How can I add static media such as images or mp3 files ? They don't seem to load. I have a songs folder inside src but the code can not load it....

Error on calculating daily tasks

Hello, I am getting this error after running wasp start: [ Server!] Error calculating daily stats: Error: 2 UNKNOWN: Getting metadata from plugin failed with error: error:1E08010C:DECODER routines::unsupported [ Server!] at callErrorFromStatus (/root/app/node_modules/@grpc/grpc-js/src/call.ts:82:17)
[ Server!] at Object.onReceiveStatus (/root/app/node_modules/@grpc/grpc-js/src/client.ts:360:55)...

I need help with adding a new route

Dear wasp community, I'm starting my new SaaS and I want to add new pages. But when I run into this error: ``` ~/documents/yawningstudio/app$ wasp db migrate-dev 馃悵 --- Compiling wasp project... --------------------------------------------------...

Browser error

im gettting this error and the app wont load in my browser when i run wasp start (the error is too long to display here ) [ Client!] Error in error handler: [ Client!] Error: offset is longer than source length! offset 7567 > length 6180 [ Client!] at numberToPos (file:///home/faith/testsaas/app/.wasp/out/web-app/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:9861:11) [ Client!] at TransformPluginContext._formatError (file:///home/faith/testsaas/app/.wasp/out/web-app/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:47389:25)...

How to configure light & dark mode logos

I'm having trouble understanding how to find the code that swaps between the 2 logos depending on whether dark or light mode is enabled

CORS ERROR

Having some trouble finding how to allow custom origins in my wasp app. I make the api call using wasps api in the client to request from an api in the server, same app. I am in local host

Prisma logging (and other PrismaClient modifications)

Hello! When using prisma I am used to debugging queries by logging them using the following: ```typescript prisma.$on('query', (e) => { console.log('Query: ' + e.query)...

demo app wont load

@kapa.ai working with the saas boilerplate and the demo app wont load. I get this in the terminal
Server ] [nodemon] app crashed - waiting for file changes before starting... [ Client!] (node:4053) ExperimentalWarning: CommonJS module /home/brad/haystack9/app/.wasp/out/web-app/tailwind.config.cjs is loading ES Module /home/brad/haystack9/app/.wasp/out/sdk/wasp/dist/dev/index.js using require(). [ Client!] Support for loading ES Module in require() is an experimental feature and might change at any time...

PgBoss error during deployment

I'm getting the following errors while attempting to deploy the backend of my appilcaition. I'm using aws rds to host the db. Apollgies the errors are not parsed properly. ```...

Integration of a dashboard into my React application

Hey Wasp lovers! I built a small React app without using additional framework, which I may try to migrate to wasp. However, first I'd like to integrate a dashboard like the Open SaaS one with all the useful features into my app. Yes, my question seems odd :wasplang: . How to achieve such a thing technically-wise? Thank you for your feedback....

stripe webhook

I am in the process of trying to deploy but running into an issue with my stripe webhook. Locally when testing I was running stripe listen --forward-to localhost:3001/payments-webhook and this was working correct. I have tried following the docs and creating a https://myapp-server.fly.dev/payments-webhook and https://myapp-server.fly.dev/stripe-webhook. I have selected the correct events to listen to but in my server logs i can see it is not working correctly. I also updated my STRIPE_WEBHOOK_SECRET env var, what else could I check or be doing wrong?...

strange behavior with not finding exports

hey, learning wasp and ran into this problem with finding imports in "wasp/client/operations". Sometimes it fixes itself with multiple wasp clean, wasp start, rm -rf .wasp, etc.. but wonder if anyone can explain why this happens and how to resolve it faster? I'm also using queries.js and actions.js as suggested in the 0.15.0 docs. This does make learning a bit slower so any help would be appreciated! using linux Debian 5.10.209-2, wasp 0.15.0, node v20.18.1, npm 10.8.2, react react@18.3.1, react query @tanstack/react-query@4.36.1 ...

sdk build failed

@kapa.ai hey, New project , SDK build fail on initial wasp db migrate...

Is there a way to reduce the session expiry instead of the default 1 month .

#馃檵questions While I can update the session table post login with an updated expired_a ,but this will reset whenever a refreshe triggers a new token or updates the life of existing topen Let me know if there any way I can achieve this....

Google auth deployment on fly

I have been having some issues with getting google auth working on fly deployments, it was working locally, now when I test locally I get to see the login screen but when I login with google it just hangs, when I go to my online version I dont even get to see the login screen. I have set the WASP_SERVER_URL to my fly.dev url and the WASP_CLIENT_URL to my custom domain name ...