Wasp-lang

W

Wasp-lang

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

Join

Quickest way to locally host for public

Is there any fast way to locally host my wasp project to someone outside my network? For example, how would I set-up ngrok for a wasp app?...

is there a way to customize the autogenerated fly.toml files for deploying on fly?

I followed the instructions to do a regular "automated" deployment with Fly, but I realized deploy comes with some assumptions such as redundant services etc that I don't really need when I'm setting up a staging environment. Based on what I've seen the fly.toml file is re-regerated in .wasp/build every time the command wasp deploy fly deploy is executed. Does it mean I need to manually deploy to Fly instead if I want to customize thier configuration?...

.env not populating

When i am working with https://github.com/vincanger/coverlettergpt/ and i make and enter values into .env.server.server and run "wasp start db" then "wasp start" the node api on port 3001 will not start until i manually edit .wasp/out/server/.env to enter a GOOGLE_CLIENT_ID is this expected behaivor the documentation stated to only edit .env.server.server, and when i run "wasp build" it overwrites .wasp/build/web-app and its .env and i need to manually populate it? am i understanding correctly or doing something wrong? see more details here:https://github.com/vincanger/coverlettergpt/issues/18...

wasp build

What command should I use to build the wasp application if I have REACT_APP_API_URL=https://thehatchery.io:448 and WASP_SERVER_URL=http://thehatchery.io:3001

CORS issue

I deployed https://github.com/vincanger/coverlettergpt backend and database to railways, and frontend to netflify and I am facing CORS issues Frontend: https://66fcdba5764d005f23d60460--coverlettergpt.netlify.app/ when i go to login and try use the backend nodejs to login at https://aijobbot.up.railway.app/auth/me I am getting CORS issues...
No description

SDK build failed with exit code: 2

Heyy @kapa.ai ! `[ Wasp ] ext-src/dashboard/routines/EditRoutineModal.tsx(88,68): error TS2352: Conversion of type 'string' to type 'Set<string>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. [ Wasp ] ext-src/dashboard/routines/RoutineForm.tsx(61,87): error TS2352: Conversion of type 'string' to type 'Set<string>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. [ Wasp ] ext-src/dashboard/routines/RoutinesPage.tsx(36,15): error TS2322: Type '(GetResult<{ id: number; name: string; userId: string; }, unknown> & {})[]' is not assignable to type 'RoutineWithExercises[]'....

recommended ssl configuration for api server

@kapa.ai I am installing a prduction Wasp server with nginx as a proxy server. I've configured port 80 and 443 on nginx to forward to port 3000 on the wasp server. However, authentication fails because the client REACT_APP_API_URL is set to port 3001. I believe I should change this to https (port 443) but doing so causes the following error: "useAuth.ts:23 GET https://thehatchery.io:3001/auth/me net::ERR_SSL_PROTOCOL_ERROR" How should I be configuring the port forwarding and listening here, and what should my ENV variables be pointing to?1...

- SDK build failed with exit code: 2

Heyy @kapa.ai I need your wisdom here ...

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