Wasp-lang

W

Wasp-lang

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

Join

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

DB wont setup

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

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

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

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

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

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

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

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

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.

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

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

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

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?

Getting error on Google Auth deployed version (using MacOS) and wasp version 0.13.2

Getting "An unknown error occurred while trying to log in with the OAuth provider." Google was working fine on localhost, but once deployed it is no longer working.

stripe issues

Hi I'm following the instructions and trying to get the customer portal link activated. "Note that there are variables set aside for your test portal link, as well as a production portal link. You will be warned in the console if you there is no link in the development environment, but the app will throw an error if there is no link in the production environment!" Please help me understand exactly what I need to have in the constant.ts file to launch...

OpenSaas template updates pull into project

Hi there! My question would be if there are any updates on the OpenSaas templates, how can we pull this into our project where we have our own repository?

How does one go about creating their own server-side API endpoint to interact with in the frontend?

wasp version 0.13.2 Platform: MacOS Hey! Quick question, is there documentation lying around somewhere regarding a guide to creating your own API endpoint in order to interact with it in the frontend without messing with authorizations and backend logic? ...

Prisma client generation failed

Hello ! I have problem when i make wasp start or wasp db migrate , i have "prisma client generation failed with exit code:1" can you helpe me ? please