What is the API endpoint in production?
My development environment has port 3000 for the app and 3001 for api. When I deploy to production the site works but the API endpoint does not seem correct. What is the API endpoint in production?
wasp start. In production, it should contain the value of your server's URL as the user's browser sees it (i.e., with the DNS and proxies considered).REACT_APP_API_URL environment variable in your .env.client file to the URL of your server. For example:
wasp startREACT_APP_API_URL.env.clientREACT_APP_API_URL=<https://your-server-url.com>import { config } from 'wasp/client'
console.log(config.apiUrl)