Wasp-lang

W

Wasp-lang

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

Join

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. ...

Is there a way to style .wasp files in JetBrains products?

Hey I installed the opensaas project to check it out and I see there's a .wasp highlighter for VSCode but not for PHPStorm/WebStorm. I couldn't find a plugin for that but I'd like to know a bit more about the highlight maybe I would be able to style it myself.

proxy db to locacl host and open db studio

hello do you remember how to proxy db to localhost?

How to install paritcular version of wasp

I am trying to setup CI and find that wasp version is increased. Not in position to upgrade the wasp on the code yet. How to install a particular version in cli.

CORS issue

Hi I can't get around this error in production:
Access to XMLHttpRequest at 'https://skyber-academy-server.fly.dev/operations/get-waitlist-emails' from origin 'https://skyber-academy-client.fly.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Access to XMLHttpRequest at 'https://skyber-academy-server.fly.dev/operations/get-waitlist-emails' from origin 'https://skyber-academy-client.fly.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
...

Thank You and Some Deployment Questions For All

Thanks for developing this tool, I have enjoyed using it for building an MVP. Now that I am close to release, however, I'd like to hear thoughts about deployment. Certainly, I would like to have an automated CI setup. I would like to be able to deploy to GitHub and see changes online without much friction. What would be a nice setup for this? Another question is about server providers. What about Hetzner, Fly.io, vs. Digital Ocean droplets? It seems like Hetzner and DO are both cheap and reliable alternatives. What would be a nice tooling with these services considering CI?...

Blank Page when Create New App

Hi, I am new to wasp and wanted to create an app with open-saas. I followed the instructions on the official docs, but when running wasp start I get an empty page at http://localhost:3000/ (favicon is popping up, but the page has no content). I don't think this is supposed to happen. I am running with node version 22.9.0, npm version 10.8.3, wasp version 0.15.0 on a M1 Mac. There was a warning on running wasp start:...

How to send emails with Mailgun

What code do I need to use to send emails with Mailgun?

Failing to deploy (Assign own domain)

I am working with the opensaas template and I have skipped the email configuration since my app will not have registration/login or anything related (so I have Dummy sender). I have tried to deploy with Fly but it returns this error: `❌ --- [Error] Your wasp project failed to compile: -------------------------------...