Wasp

W

Wasp

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

Join

Google auth deployment on fly

I have been having some issues with getting google auth working on fly deployments, it was working locally, now when I test locally I get to see the login screen but when I login with google it just hangs, when I go to my online version I dont even get to see the login screen. I have set the WASP_SERVER_URL to my fly.dev url and the WASP_CLIENT_URL to my custom domain name ...

Really struggling with deploy

Hi all - I've been building a Wasp app for the last two months while teaching myself coding. I'm almost done my app on local. I am really struggling with the deploy. I'm working off an M2 Silicon Chip Macbook Pro, and I've tried a ton of things. TL;DR, I'm trying Heroku, but even when trying the specific instructions for M2, it still didn't work. Tried downgrading Docker to a less current version, but I am unsure which version to downgrade to, and it seems that Docker also has version limitations with M2. I get the following error when I use the command: heroku container:push --app XXXXX web...

How to install older version of Wasp?

I see migration guides for older to newer versions, but I am given a project that I cannot migrate right now / do not have the time to and can't find anything on how to install an older version. Im looking to install 0.14.2 on Mac https://github.com/wasp-lang/wasp/releases/tag/v0.14.2 I installed the gz file here and tried moving wasp-bin executable to my bin, but apple wouldnt accept it/run it. Also when I unzipped, there was a bunch of other stuff like an entire data folder. So, what's the right way to download an old version of wasp? I would love to migrate later but need to get up and going....

Google Auth 404 in production / fly

Hi @kapa.ai I have my new opensaas/wasp site deployed on fly. After figuring out how to solve the CORS issues, I'm left with one problem. This is working in development, but in production when I select Google as my authentication option, I'm redirected to 404 https://<mysite>/auth/google/login Incidentally, I noticed that on fly, my site-server machines are restarting and then getting suspended. Looking at those logs I see: ...

Wasp compile error

[ Wasp ] error TS5056: Cannot write file '/mnt/d/AI Projects/wsl backup/yt new/app/.wasp/out/sdk/wasp/dist/ext-src/server/main/youtubeAPI.d.ts' because it would be overwritten by multiple input files. [ Wasp ] error TS5056: Cannot write file '/mnt/d/AI Projects/wsl backup/yt new/app/.wasp/out/sdk/wasp/dist/ext-src/server/main/youtubeAPI.js' because it would be overwritten by multiple input files....

Custom subdomain and domain for my saas users

Hello guys. I am building this crm for gym owners, and i want to add this feature of each gym build their website, a simple lading page and i was thinking in implemeting something like subdomain on it so the url can be more friendly and brandable for them. Any ideas on where to find resources to go for it or any of you have done somthing similiar in wasp?

Unable to start wasp

I am getting the following error when trying to start wasp. I am running MacOS 15.2 [ Server ] > rollup --config --silent [ Client!] ✘ [ERROR] Expected identifier but found "import" [ Client!] [ Client!] (define name):1:0:...

I am trying to use helpers keycloak

I did all thing in https://wasp-lang.dev/docs/auth/social-auth/keycloak, I run created server keycloak, add the KeyCloakbutton,... but when I click on the button, it failed Did I miss something? I run code in WSL...
No description

Comment autoriser les admins a accéder a une page

Comment autoriser les admins a accéder a une page dans la template opensaas ?

I want to python batch

I was wondering what could be the easiest way to implent a python batch to the app. Whitout need to add another server to the app since i cant modify the yaml for docker....

Manipulating production database with fly.io and wasp db studio

@kapa.ai I used the Wasp CLI to deployed my db (skyblaze-db). I followed the tutorial by: Run fly proxy 5432 -a skyblaze-db and got Proxying local port 5432 to remote [skyblaze-db.internal]:5432 ...

Use case for functions exposed by wasp/server/operations

When you define an operation in main.wasp, the framework compiles and creates 2 exports of the same name. One from wasp/client/operations and one from wasp/server/operations. Of couse you would invoke the operation from wasp/client/operations to on the frontend. I'm wondering: what is the use case for the function exported from wasp/server/operations?

Getting CORS issue when using Wasp CLI to deploy

@kapa.ai I'm experiencing a CORS issue, NOT using my own domain:
Access to XMLHttpRequest at 'https://skyblaze-server.fly.dev/crud/Slot/get-all' from origin 'https://skyblaze-client.fly.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Access to XMLHttpRequest at 'https://skyblaze-server.fly.dev/crud/Slot/get-all' from origin 'https://skyblaze-client.fly.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
My main.wasp is like ...

CORS issue

@kapa.ai i'm experiencing a CORS issue: Access to XMLHttpRequest at 'https://api.elmossetgourmet.es/auth/me' from origin 'https://elmossetgourmet.es' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this errorAI api.elmossetgourmet.es/auth/me:1 ...

I need to increase fly VM size

How can i increase my fly VM Size? I want to use wasp deploy, and i know the OG fly command is
flyctl deploy --remote-only --vm-size shared-cpu-4x --vm-memory 8196
flyctl deploy --remote-only --vm-size shared-cpu-4x --vm-memory 8196
I think anyways. i thought i could do it with
wasp deploy fly deploy --fly-toml-dir $(pwd)/infra/production --org jferrarishaikh-gmail-com fly cmd --remote-only --vm-size shared-cpu-4x --vm-memory 8196
wasp deploy fly deploy --fly-toml-dir $(pwd)/infra/production --org jferrarishaikh-gmail-com fly cmd --remote-only --vm-size shared-cpu-4x --vm-memory 8196
...

Incompatible PostgreSQL Version

After I updated Docker, when I tried to wasp start db I get the error below: PostgreSQL Database directory appears to contain a database; Skipping initialization FATAL: database files are incompatible with server...

Github Auth callback url fly

for the callback url should i use my custom domain ("example.com") or the fly url ("example-server.fly.dev")? When i use my custom domain it doesn't work, just get ``` This site can’t be reached Check if there is a typo in tweetlaunch.com. DNS_PROBE_FINISHED_NXDOMAIN...

Facebook login?

I know Facebook is not official wasp supported, but has anyone been able to use Facebook login? Curious on how and best practices for implementing with WASP

Accessing static files

I need my app to access a collection of static JSON Schema files, but it doesn't seem straightforward to do so. The files are currently positioned in the server/utils/schemas directory, but this directory isn't included in .wasp/out/sdk/wasp/dist/ext-src. It is included in .wasp/out/sdk/ext-src, which is where I'm currently having to reference them from, but I suspect this location won't be valid for the deployed application. As the __directory and __file magic variables aren't available, here's my current, hacky, implementation: ```ts...
Next