Wasp

W

Wasp

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

Join

deploy in fly.io with multiple environment

need to deploy client and server even the database for prod and dev or staging

Migrating from v0.14 to v0.15, entities not found

Seeing these errors after following migration steps to v0.15. It seems like issues with prisma not generating my entities. ``` [ Wasp ] entities/index.ts(11,8): error TS2305: Module '"@prisma/client"' has no exported member 'TeamPlayer'. [ Wasp ] entities/index.ts(12,8): error TS2305: Module '"@prisma/client"' has no exported member 'Summoner'. [ Wasp ] entities/index.ts(13,8): error TS2305: Module '"@prisma/client"' has no exported member 'Rank'....

Regarding ask-the-documents WSL2 solution to compile

Error: P3006 Migration 20230907154352_add_extension failed to apply cleanly to the shadow database. Error: ERROR: extension "vector" is not available...

I dont get the signup mail locally

I dont see the log for the signup mail in my local terminal, why is that? I did something with mailgun recently but I am not sure what.

How can I make my navbar dissapear on a specific page?

How can I make my navbar dissapear on a specific page?

Best setup for cascading?

As part of my app, I have advanced stats for user profiles contained in a seperate table with a foriegn key relation. When deleting a user profile, I need to also delete the row in the advanced stats table (both for practical reasons, and because the process fails if I don't). What's the best way of doing that - I assume it's using onDelete in the schema file?

add stripe

How do I add stripe support to an existing project created using Mage without Stripe?

How to build the just web-app

I am trying to deploy web-app to cloudflare pages. Cloudflare pages uses git commit and checks out code . Then builds and deploy the web-app. I would like to build just the web-app is this possible

Google auth configFn and userSignupFields

When I add either of these functions to my main.wasp, I get errors. My google auth method looks like this:
google: { configFn: import { getConfig } from "@src/pages/auth/google.jsx", userSignupFields: import { userSignupFields } from "@src/pages/auth/google.jsx"...

Other places to deploy server

What are some other places to deply wasp server, can i deploy on netlify?

process is not defined

I'm building a chatbot SAAS using OpenSAAS. I created the app files (.tsx and operations.ts) in its own folder, just like the demo app. I also stored some API keys in .env.server, and I'm trying to access them in operations.ts via process.env, but when I run it, it always errors saying "process is not defined" (dev console points to config.ts), but the demo app (which also uses process.env) works fine. Can anyone help? Is there a step I'm missing? Here's a snippet of code trying to access OpenAI's key...

Doing SEO with Wasp

Hi Kapa, I just deployed my app and I am an SEO expert and I want to be able to control everything. Meta title, meta description, json ld, index/noindex, follow/nofollow, robots.txt, sitemap.xml, breadcumbs. Give me all the information you can gather regarding everything I have told you. Give me github threads, issues, etc... I need to know as much as possible all my SEO possibilities (both now and in the future). Remember that I am an SEO expert and it does me no good to just change a title or subtitle. If you do it right you will get the boss to give you a 200€ bonus....

Issue with dotenv

-- [Error] Your wasp project failed to compile: ------------------------------- - Error: Dependency conflict for user dependency (dotenv, ^16.0.2): Version must be set to the exactly the same version as the one wasp is using: ^16.0.3 ...

Restrict access page based on role of user

Hi everyone, I am working on set permission levels for user something like super admin, admin, manager, user. I want to limit access to some pages with given permission levels. For example, user will not be able to access user-management dashboard but other roles have. I see we defined authRequired: true in main.wasp. Can we do the same with set role in this file main.wasp also?...

google auth

I created an app using mage, and didn't include google authentication. I would now like to add that functionality. What is the simplest way to add that functionality?

Won't show up on google

Hey i have configured google search console with my site along with added head tags in my main.wasp but my site will only show up if i type site:mylecturelab.com on google.
No description

Problem with generating Entity from Prisma Model.

Hello, I am new to wasp. I add new model to Prisma model Rocket { id Int @id @default(autoincrement()) description String...

What is entites?

what does the entites parameter in the main.wasp file mean?

how do I show the users email on my frontend.

Hi kapa how can i show the users email on my frontend. Also for my opensaas project how can i extend the register field to have more things related to b2b.

CreatedAt, UpdatedAt, DeletedAt

Hey Guys! I want to ask how do you manage the timestamps for your models. I wanted to have createdAt, updatedAt, and deletedAt attribute for all my models but adding these fields manually to all models seems a bit tedious and against the DRY principle. Is there a better way? I thought of creating a base model with these defined and extending all other models from it but prisma doesnt support inheritence either. Before adding these properties in each model, i would like to ask for some guidance as i am new to this framework. below is my Task model. ...