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:
My
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.
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 I think anyways.
i thought i could do it with ...
flyctl deploy --remote-only --vm-size shared-cpu-4x --vm-memory 8196
flyctl deploy --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
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...i have websocket and i want to be able to call websocket in my server action
want to trigger websocket in action server or api in my application
Routing to another page
Hi, I'm getting type errors when trying to route to another page. e.g. a profile/:id page. I am aware of this documentation: https://wasp-lang.dev/docs/advanced/links. But when I try to use <Link
to="/profile/:id"
params={{ id: creation.user.id }}
className="text-blue-500 hover:underline"
>...
I am customizing the SaaS template
Good day to everyone, I am customizing the SaaS template and every changes made I have to restart the database and the development server to reflect the changes, why?
Error after upgrading to Wasp 0.15.0
Hey Wasp team!
I just upgraded Wasp from v0.14.0 to v0.15.0 by following all the steps on the migration guide (https://wasp-lang.dev/docs/migration-guides/migrate-from-0-14-to-0-15).
After upgrading, my project doesn't seem to build anymore, I am now getting following error:...
Google analytics is not getting installed in my index.html after using npm run build?
I'm using the wasp basic template (1). I have analytics set in my wasp.main and when i try to build it using npm run build/netlify build commands and couldn't able get the scripts installed in the head section in index.html file?
I've also tried using different scripts for analytics, but nothing seems to work.
Can anyone help me with this issues?...
Usemage app result show blank white screen
Hello, I hope everyone doing well.
I try to use usemage, it successfully installed and once I run it, it work, but I only get blankscreen white.
I have no uBlock in my chrome, or other server running. Is there anyone know how to fix this issues?
Thanks in advance...
SKIP_EMAIL_VERIFICATION_IN_DEV=true not working
I just upgraded my project to 0.15 and I'm trying to use SKIP_EMAIL_VERIFICATION_IN_DEV=true in my .env.server file, but it still asks me to verify on dev
Setting up new machine and wasp won't install.
@kapa.ai I'm trying to set up a new machine and the CL prompt to install won't work. I get an error saying there is no wasp version 15.2
Can't access auth methods?
I am trying to use import { getRedirectUriForOneTimeCode, tokenStore } from "wasp/server/auth"; as defined in this gist - https://gist.github.com/infomiho/3c63de7d53aba59d6293bcb59501a029
However, they aren't recognised by Wasp - I am running 0.14.2...
user context
i have made dashboards for different kinds of users by just using the admin dashboard template. i sreated a vendor dashboard (if the user is a vendor) but the messages mutton on a vendor dashboard still links to admin/messages instead of the route vendor/messages thats in the main.wasp file. is there a way around this? or do i have to repalce the messages button with another component?
Connection refused on signup auth
I have generated app using usemage.ai but when I tried to signup in local development it is not working.
I am getting this error...