mgp25
WWasp
•Created by mgp25 on 11/28/2024 in #đŸ™‹questions
CORS Issue
Wasp version: 0.13.2
Backend: https://api.mydomain.com
I have read other issues regarding CORS and I have deployed everything as the documentation recommends:
I have a
serverSetup.ts
file which has the following:
As far as I know config.frontendUrl
should be already https://mydomain.com
but I have added since I am not able to get it working.
In main.wasp
I have added the following:
But I am still getting on client:
NGINX config:
Any idea what I am missing?12 replies
WWasp
•Created by mgp25 on 11/21/2024 in #đŸ™‹questions
Question about shared constants
We have the following code in shared constants:
When testing locally, I am seeing the file constants is fetched as it is, being able to see test url as well. Is this the expected behaviour? Is there any better way to be able to set these while keeping the test url hidden during the deploy?
21 replies
WWasp
•Created by mgp25 on 6/4/2024 in #đŸ™‹questions
Can't find variable: process
I am lately getting
ReferenceError: Can't find variable: process
which is caused by /server/config.ts
and points to:
As far as I know, this should be only run in the server and not the client and therefore causing the error. I have not changed anything within the Wasp Project. No matter what I do, once I run wasp start
the project only shows a blank page with that error in the web console.
Any idea what could happen?
OS: MacOS
Node version: 18.20.3
Wasp version: 0.13.24 replies