Wasp-lang

W

Wasp-lang

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

Join
BBradMcA5/14/2024

Error while seeding DB any ideas how to solve? #p2021

[ Db ] Environment variables loaded from .env [ Db ] Running seed command npm run db-seed ... [ Db ] [ Db ] > server@0.0.0 db-seed [ Db ] > npm run bundle && node --enable-source-maps -r dotenv/config bundle/dbSeed.js...
Tterrence5/14/2024

affiliate program integration

Is there a solution for integrate affiliate program into opensaas? I'm looking at rewardful with stripe, or is there any more generic way to integrate affiliate program into wasp? Thank you. @miho @kapa.ai...
G3ghan5/13/2024

Hello! thanks! I'm debugging a deployment with an additional Dockerfile

I'm not seeing the logging and I'm wondering if it's ending up elsewhere? I can see the added docker info in 'wasp dockerfile' but my logging doesn't show up. I'm also curious if docker-compose file will be executed as well? would I be better off running separate containers on the server?
KKeshawn5/13/2024

routing

I added this route to main.wasp, route QuizRoute { path: "/quiz/:id", to: QuizPage } page QuizPage { authRequired: true, component: import DemoAppPage from "@src/client/app/QuizPage"...
VSVivek S5/13/2024

Error 400: redirect_uri_mismatch

Hi guys, I am pretty new to using wasp and web development in general. I am using the open.saas template that's available, and was on the google authentication part (I was following a youtube tutorial), and I did exactly what the documentation said, however, i am getting the " Error 400: redirect_uri_mismatch " when I click on the "Login in via Google" button. I have attached the 2 images of what the login page looks like, and the aftermath. I can't figure out what the issue is, as I have done everything I could have thought of. ...
No description
SVStefan Vitória5/13/2024

Deploy the app i build with wasp open-saas to self hosted (VPS)

I am considering deploy the app i will be building to a VPS. Did anyone try it already that can give some tips...
GGuerilla5/13/2024

DB wont setup

Man, anyone got some tips for getting my db up and running again. wasp db migrate-dev just hangs.
Jjellyzone5/13/2024

I want to show a react gpu component using Use.GPU

Hi, guys, thank you for the nice library, I want to show a gpu render component using Use.GPU which is from https://usegpu.live/docs/reference-components-@use-gpu-react My code is : ...
Mmarto5/13/2024

Query returning extra records that do not match

Wasp version: 0.13.2 Platform: WSL Apologies if this is a dumb question, but I have been tearing my hair out for the past 2 hours trying to figure this out. ...
No description
AArnab5/13/2024

Credit functionality

Hi all - Love this project. Thanks for making this amazing community. I'm trying to figure out how to use the credit functionality properly. For example, I'd like to -1 a credit for an uploaded image. Where is the credit logic and and how do I call the function to modify the credit amounts?...
RBRicardo Batista5/12/2024

Threat of clickjacking

Being a total noob into website security, I received the following email: ``` The server didn't return an X-Frame-Options header which means that this website could be at risk of a clickjacking attack. The X-Frame-Options HTTP response header can be used to indicate whether a browser should be allowed to render a page in a <frame> or <iframe>. This is a client-side security issue that affects a variety of browsers and platforms. Steps to reproduce:...
SSterling10605/11/2024

Graph database integration

Hi there, any advice for trying to get a Graph DB backend? I'm trying to do some network searching, would it just be easier to use Postgress Also can I connect more than one DB type. Eg SQL for logins but graph for friends...
|•°•|5/10/2024

Showing no such file or directory when I do wasp db migrate-dev

I copied my folder to WSL, and then opened that folder in WSL, and ran the command
No description
Eellie5/9/2024

Server listen addr when deploying to fly.io

I'm on MacOS using wasp 0.13.0. For some reason when my server deploys (both with wasp deploy fly deploy and the manual fly deployment flyctl deploy --remote-only --config ../../fly-server.toml I'm getting an errors about it not listening on the proper addr/port? `[error][PC01] instance refused connection. is your app listening on 0.0.0.0:8080? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on) ... [info]waiting for machine to be reachable on 0.0.0.0:8080 (waited 10.399511506s so far)...
MMujahidPH5/9/2024

how to optimize image loading in OpenSaas Project?

How to optimize image loading like Next js? can anyone help me to solve this issue. right now image are loading too much.
KKaran5/9/2024

Disable Plausible and enable Google Analytics

I keep seeing this on server side logs. Can you tell me how I can disable Plausible and enable Google Analytics? Right now I am changing the code imports in calculateDailyStats.js manually before my deploy (yet to test this out): ``` // import { getDailyPageViews, getSources } from './plausibleAnalyticsUtils.js'; import { getDailyPageViews, getSources } from './googleAnalyticsUtils.js';...
NNinja++5/9/2024

Path error

WARNING: It looks like '/Users/milesscott/.local/bin' is not on your PATH! You will not be able to invoke wasp from the terminal by its name.
You can add it to your PATH by adding following line into your profile file (~/.profile or ~/.zshrc or ~/.bash_profile or ~/.bashrc or some other, depending on your configuration):
export PATH=$PATH:/Users/milesscott/.local/bin
WARNING: It looks like '/Users/milesscott/.local/bin' is not on your PATH! You will not be able to invoke wasp from the terminal by its name.
You can add it to your PATH by adding following line into your profile file (~/.profile or ~/.zshrc or ~/.bash_profile or ~/.bashrc or some other, depending on your configuration):
export PATH=$PATH:/Users/milesscott/.local/bin
I have tried to edit this path file but i really don't understand what i am doing. Here is my attempt to edit the file below....
JJulien5/9/2024

Activation of Google and GitHub AUTH on saas project

Hello everybody ! Pretty new to wasp, and even on web dev. I am currently working on the SaaS template and wanted to activate Google & GitHub AUTH. I activated it in the auth dictionnary, and the buttons appear on the login page. The problem is that when I click either of them, it redirects me on this url http://localhost:3001/auth/google/login which doesn't exist. I may be missing something but right now, I don't understand the problem. Thanks for your advices...
KKaran5/8/2024

Turning off ASCII color logging in PROD

I have deployed my opensaas template on AWS App Runner and viewing the logs in CloudWatch is really ugly because ASCII Color logging is not supported. Can I turn off colored logging on PROD?
Next