Wasp-lang

W

Wasp-lang

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

Join

Update / maintain production deployment

Lets say i deploy to fly my V1 of my app. How would i then maintain it and for example update it without having users loose data. Let say i add a new page and some new actions locally. How can i push these to fly?...

Exclude certain files or folders on Fly Deploy

I'm using Cursor charged with Wasp Docs and other docs inside @src/. I want to deploy some changes with Fly but I don't want the Wasp docs to be uploaded to my server. How can I exclude it somehow?...

Websocket queries

how does the usewebsocket work? i have in main.wasp webSocket: {...

Even after setting auth:true in api end point in main.wasp api end point is not secure.

I can still call my api simply from http://localhost:3000/api/custom-api-endpoint-with-parameters and it shows api response with data. How to solve this and make it secure?...

PayloadTooLargeError

I'm creating an OpenSaas document application. When the user uploads a file, it sends the file to the operations.ts backend for processing. However, I'm getting a "PayloadTooLargeError: request entity too large" error, even when trying to upload an 80kb file. I created a serverSetup.js file and added "export const serverSetup = () => { app.use(express.json({ limit: '50mb' })); app.use(express.urlencoded({ limit: '50mb' , extended: true }));...

How can I create a JSON field in a model?

Hi, I'm trying to create a model that has a JSON field (Mainly to store a structured data) but I'm facing an error that I can't figure it out. Here are the models:...

Clear wasp api endpoint imports errors in ide?

Is there a way to fix these annoying things? VSCode errors every wasp api endpoint in the imports....

Can't find example to configure logging(ex winston) on the server.

I would like log some information during api calls . I would like it to be debug for dev and info for production. And also log thing in json format instead of lines which get split across in log aggregation framework. Any suggestion how to achieve this

stripe setup help

I hate stripe. this is my first time putting a payment portal on a website, and im sure its way better than other things, but god it is so annyoing. I would happily pay someone $100 to just get stripe setup. with that out of the way, I am getting this error: ```...

Google Auth Redirection Not Working (Netlify & AWS)

Hi everyone, I am currently trying to deploy an app built with Open-Saas on Netlify and AWS EC2 instance with Nginx. Everything was working in the developer environment, but when I try logging in via Google it breaks. The Google Auth screen shows up normally and gives a response that results in several redirects, but after signing in it eventually redirects to https://myapp.netlify.app/oauth/callback, where it is met with a 404 (the same redirection returns a 304 in local developing environment). I have posted the screenshots from Google Dev console. At the time of failure, the url showing up in chrome is https://myapp.netlify.app/oauth/callback#{long_token} I went though the docs and previous questions but was not able to find much helpful information. I imagine it has something to do with the netlify.toml file but am not sure what to change. Please let me know if there are any other information I can provide. Any suggestion would be much appreciated!...
No description

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?