Wasp-lang

W

Wasp-lang

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

Join

I want just 1 page like coverlettergpt. how can I do this with the opensaas boilerplate?

like the title is saying i want to build my own app and ship it fast like real fast. I want a simple 1 page website like coverlettergpt and just have my app there and of course auth before using it. and maybe below the app a buy credits section. how can I do this with the opensaas boilerplate? should I not delete a lot of stuff?

Where to place CSV file when seeding the database

I'm trying to seed the database with a CSV file but I'm struggling to figure out where to place the CSV file when running fs.createReadStream(path.join(process.cwd(), 'data.csv')). I'm using path.join(process.cwd(), 'data.csv') but the CSV file doesn't exist in .wasp/out/server/bundle/. Any help is appreciated!...

Websocket connection to server fails

In my client I am seeing an error "WebSocket connection to 'ws:3.12.219.195' failed". Is this something to worry about? Do I need to ensure a websocket port is open?

Is there a recommended way to set up github actions for continuous delivering database migrations?

I want to set up proper CD in my project, starting from database migrations. Is there a recommended way to implement that with GitHub Actions, considering that I'll be deploying on Supabase?...

Deploying Client Side Env Variables/Incorrect Useage?

I had client side env variables successfully running in production for a few days before they seemingly "turned off" (are undefined) - I didn't change anything (that I know of) This is how I use the variables ``` function isRunningLocally() { return window.location.hostname === 'localhost'; }...

Can't change default button color

Is tehre a way to change the yellow that is present by default? Also is there any resource to understand the structure of the auth page? Can't figure out how that works after a couple hours of tinkering, also is manually editing 5 different files really the only way to customize the page for Login?...

Client Side Routing

I'm using a custom deployment strategy for the server and client following this approach from the wasp documentation. I have various routes defined--/, /my-dashboard...etc. The pages render fine when you go to / and navigate to them via links on the page. However you get 404'd when trying to load https://my-site.com/my-dashboard, since they are SPA routes and there is no my-dashboard.html--i....

Opensaas

I don't see Price ID in Sass, but just the product ID. Are they same?

redirect after login

after authenticating with /auth/me the app is redirecting to my landing page, which has a history.push() to go to the logged in dashboard page. However, that means the logged in user can no longer get to the main page. Is there a way to change the default location users are directed to after authentication?

What is the best way to update from 0.14.0 to 0.14.2?

Hello, I would like to know what is the best way to update to 0.14.2? Is the best way creating a new wasp app and just copy/paste my /app/src/ folder in it?...

Fly.io deployment syntax error

I got the following error while deploying on Fly.io in the server logs. There is no syntax error when starting the server locally. ``` 2024-09-30T13:42:17.991 app[56830310a09438] waw [info] > npm run validate-env && node --enable-source-maps -r dotenv/config bundle/server.js ...

The vulnerabilities are for everyone right?

I've compiled the general template and I see this as well, just want to confirm 5 vulnerabilities (2 moderate, 3 high) This is for everyone because of wasp's dependency on outdated express version correct? ...

rebuild project on file change

Is there a way to force wasp to rebuild all the code without having to do a full clean? Replacing all the node modules takes way too long!

known issue with reloading web app?

Frequently when I make a change to the dev code (or even deploy a new version to my production system) it will recompile, but not actually load the new code. As a test I simply put a console.error() call in to frequently used section of code. and let the auto-updater recompile. I always see this in my wasp output : 🐝 --- Recompiling on file change... ----------- However, this sometimes results in no changes (i.e. the error message does not get displayed). The problem will persist until I do a wasp clean....

Is there a way for me to run a SQL query on my local database?

I've had some issues with my local db due to a manual error, so I can't complete a migration. I know what the issue is (I need to delete some duplicate rows), but is it possible for me to run SQL on my local db?

How do i change width of the landing page

I want to change the width of the landingpage. so the image in the saas template is pretty small in width i want it to reach a bigger wdith

Different Root Components for Pages

Is there a possibility to define multiple root components and assign them in the wasp config file per page? So instead of one global root component i would want something like: ``` route HomeRoute { path: "/", to: Home } page Home {...

Using Open SaaS with V0.dev (shaden UI)

I've set up Open SaaS for my project on site-engineer.com.au and am now focusing on building the front end. Since I'm not a front-end developer and want to get the MVP out quickly, I'm looking into using V0.dev for designing my pages, specifically within the Open SaaS template. Has anyone here used V0.dev with the Open SaaS template for rapid front-end development? I'd appreciate any tips or insights on how to best approach this while ensuring a professional and cohesive look for my site. Thanks...

production deployment port

I'm deploying my wasp app to an Amazon EC2 instance. I've set up nginx as a reverse proxy for port 80 to port 3000. However, when I attempt to login I get an error message stating: "Access to XMLHttpRequest at 'http://localhost:3001/auth/username/signup' from origin 'http://3.12.210.195' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local." Where is the "localhost" part of this auth path set, and do I need to o...

HTTP port

Hi there. Any pointers on how to change the HTTP and HTTPS ports the server is listening on? 3000 and 3001 don't work for me.