need a way to have different emailsender in dev and prod...
right now, when developing locally, i have to set the emailsender to dummy. then, before deploying, i need to set it to smtp. then, when running locally, back to dummy. over and over. sometimes i can do multiple deployments in a day, so this is significant friction, and if i forget, the prod environment will be set to dummy.
there needs to be a way to have a main.wasp and a main.wasp.prod or some such, with the settings in the latter file overriding those in the default (dev) file. or vice versa, the mechanism doesn't matter as long as it's possible.
thoughts?...
How to add a discount code to OpenSaaS Stripe checkout page?
How do I add a discount code field to my payment processing on OpenSaaS when using Stripe?
Server Dockerfile build failure
Using Wasp 0.16.2.
Issue in .wasp/out/Dockerfile
The Dockerfile used to deploy the server docker container has a command to install the 'upx' package (Line 77) but fails. ...
Environment variable I need to add to Railway to get GoogleOAuth to work
I am getting this error in Railway:
🔍 Validating environment variables...
node:internal/errors:496
...
Is it possible to dynamically import a static client asset from the server?
Let's say I have a ts/js file that exports some JSON that I would like a server query/action to have access to, but I want to pass the file name to the query/action. Currently I have query code like this:
``
const getContractABI: GetContractABI = async ({address}, context) => {
const {default: contract} = await import(
contracts/${address}.js`);...issue with entity id
I have a prisma entity defined as such:
"model SurveyResult {
id String @id
result String
reviews String @default("") ...
action chaining losing context
I have a action (Defined in my actions.js) that makes a call to an external async call via axios, and when the response is received needs to call another action to save the result to an entity. However, the second action seems to lose context (i.e. the user context is not passed along). What's the best pattern to do something like this?
Is there a recommended way to add computed fields to a model?
For example, let's say I have a Person entity with a dateOfBirth, and I want to derive age in the model so I can reuse that across the UI.
I think Prisma client supports compute, but not sure how to use that in Wasp? Or maybe there is a better way?...
Is there a way to cc an email when using sendEmail?
From the docs, it looks like we can only define a to / from in the action.
My use case is to cc my support@ email in the Contact Form submission acknowledgement email to the user such that we can start the support conversation in a thread from there....
Unable to get cookies onAfterLogin
I am triying to acces req.cookies but it is always empty.
export const onAfterLogin: OnAfterLoginHook = async ({
providerId,...
Mailgun not working periodically
I'm using Mailgun as the email provider, and some of my users reported that they cannot receive sign-up emails.
- I checked my Mailgun dashboard and found out 30%+ of the emails are "Failed"
- I tried with my own Gmail and Outlook email addresses. It sent to my Gmail, however not Outlook address.
- The Outlook email even didn't go to the spam folder....

Unable to run the installer on a macbook
This is what I get:
```
share git:(main) ✗ curl -sSL https://get.wasp.sh/installer.sh | sh
Installing wasp version 0.16.2 (latest).
...
How to get the submenus in google
How do i get the submenus in google when i search for my saas. An example is hrefs where they below the link in the search tesults have subemenus. See the image.

Getting this issue in WASP 0.16.2
Client ] > TodoApp@0.0.0 start
[ Client ] > vite
[ Client ]
[ Server ] > server@0.0.0 watch
[ Server ] > nodemon --exec 'npm run bundle-and-start || exit 1'...
wasp start error
wasp start fails with a bunch of errors like "npm warn cleanup Failed to remove some directories"
and "Error: EPERM: operation not permitted, rmdir " on windows wsl ubuntu...
Is it possible to run Wasp in the browser with the Haskell compiled to Wasm?
I kept thinking last night about Wasp could technically run in the browser with WebContainers (or even without) if the Haskell was compiled to Wasm. Is that truly possible or just mental lore since I was sleepy?
TanStack Tables with WASP?
I'm building a SaaS platform which can be oversimplified to a collection of features built into a table. Thus far, I've done really well building my own table from scratch, but as I'm implementing more features I'm finding my Table foundation is less extensible and accurate as the required scope becomes more complex.
Before continuing my development, I'm at a crossroads. Either I refactor my existing Table schema, or I redesign my features to work with a more robust framework like TanStack Tables, which seems like potentially a smarter direction to go in.
Does anyone have experience using TanStack Tables w/ WASP? Any potential pitfalls to look out for?...