Wasp module error
Im getting an error saying the file cannot be found. Whats causing this?
[ Server ] 🔍 Validating environment variables...
[ Server!] node:internal/modules/esm/resolve:275
[ Server!] throw new ERR_MODULE_NOT_FOUND(
[ Server!] ^...
Module Resolution Setting being weird?
I got this error when attempting to use
...
state-in-url
:
import {useUrlState} from "state-in-url/react-router";
import {useUrlState} from "state-in-url/react-router";
AI cursor rules and whatnot are very biased towards operations and not APIs
What is the sentiment towards a more nuanced AI rules text that differentiates better between operations and api use cases? It would be nice if I could fill in a few details about my app like "its a mobile app so i need the default client-server communication to use APIs." as the last users edited customized rule file. Then other places it could omit saying things like "prefer operations" and give api's just as much examples in the rules. I've made those changes locally (and will be testing them...
Why does't wasp get more love on product hunt?
It's the best of all the opinionated saas starters I've found. I don't see anything this good elsewhere. Also, how do you fund running this for free?
Prisma "Includes" Typings?
What's the best way to type a query that returns a Prisma query with includes? I have a lot of nested ones and have changed my schema a few times, so I've needed to update the return type. I'm just using & { includedThing: IncludedThingType }, but that gets messy when nesting the includes. Is there a better way to handle this?
Stripe Ngrok
@kapa.ai - with the OpenSaaS template, I'm having difficulty with the Credit payment plan. I'm currently using ngrok to get to the bottom of it - should the template work 'out-of-the-box' - or is writing your own middle ware and using ngrok just standard practise? Its worth nothing that nGrok is sending to port 3001, which is something I'm about to check. Would love your oppionon
Fly.io 502 error
I've published my Saas to Fly.io, and the pages load fine, but when it comes to interacting with the backend (for instance, trying to log in, send mail, etc) I get a 502 (bad gateway) error. I have the secrets set (for the client app, PORT = 8080, and for the server app, WASP_SERVER_URL=https://zigozi-server.fly.dev/ and WASP_WEB_CLIENT_URL=https://zigozi-client.fly.dev/).
Also, when I try to log in via Google auth, it takes a while and then crashes at /auth/google/login with the 502 error.
What am I doing wrong?...
Add more data to useAuth user
Hello, I'm trying to append more data to user from useAuth. Is it currently possible? Do we have any doc about that?
github ci/cd for fly.io
i have a github ci/cd for fly.io but it's having an issue with node version and sharp
but when i deploy it locally same command is working fine...
Credit Plans
@kapa.ai - my LLM agent has to do some work on credit plans. Specifically it needs to implement a system where an external backend (not part of Wasp's front and backend) will be interfacing it - the container processes audio files. We're not to interested in that as the moment, but I'd appreciate you point out generating an LLM optimized set of content that outlines the key files and how the current credit system is implemented.
Stripe Sandbox - Product ID
I understand that the enviroment variable for Stripe payments should be the price id - however, I'm having issues finding the price ID in the Stripe UI - all I get is the product ID - I'm running my instance of Stripe in SandBox mode.
How do I get my product ID?
@kapa.ai...
404 error on /email-verification
My production app is getting a 404 error on http://localhost:3001/email-verification
http://localhost:3001/health generates {"status":"ok"}
Using the same source when I run "wasp start" locally /email-verification works fine....
Fly.io deploy server changes only
I'm hosting my Opensaas on Fly.io, and I've recently updated the middlewareConfig for CORS. Do I need to deploy the entire application by running "wasp deploy fly deploy", or is it possible to just deploy the server?
why does wasp not compile and keeps installing forever
I keep getting this error when I run
wasp db studio
on a M1 macbook pro. It never installs.
API routes not being registered
@kapa.ai - my Wasp project is complining but my custom API routes are not being registered.
//#region API Key Management
api getApiKey {
fn: import { getApiKey } from "@src/user/apiKey",...
Different auth configurations per environment
Hello, I'm looking for a way to setup email+password login for my dev environment. For production I would like to leave only social one.
Do we have any examples how to do withot multiple main.wasp files?...
custom session fields
Is there a way to add custom fields to the user session? More specifically, I’m building a multitenant app and need to store the following fields:
roles: Array<Role>
orgId?: Organization["id"]
I’d also like to update these fields - for example, when the user switches organizations, both orgId and roles should be updated in the session....
auth on api endpoints
I'm reading the docs, but still confused as to how to enable cookie-based auth out of the box. The documentation says that if i set auth: true on the api endpoint, that i will have to parse the jwt myself. But if i set it to false then there will be no auth (see payments webhook for example) If i leave auth blank, you would think that it would by default do cookie auth right? https://wasp.sh/docs/advanced/apis#using-entities-in-apis
I've tried things many different ways but haven't gotten it to work 😦...
If auth is enabled, this will default to true and provide a context.user object. If you do not wish to attempt to parse the JWT in the Authorization Header, you should set this to false.
If auth is enabled, this will default to true and provide a context.user object. If you do not wish to attempt to parse the JWT in the Authorization Header, you should set this to false.