import { config } from 'wasp/client'console.log(config.apiUrl)
import { config } from 'wasp/client'console.log(config.apiUrl)
Interestingly, during deployment, I inspected the logs. For some reason, the client is using the fly.io 'https://spellfast-server.fly.dev' domain instead of my custom one, during
npm run build
npm run build
Server has been deployed! 🚀 Deploying your client now... $ cd /home/regent116/SpellFast/spellfast/app/.wasp/build/web-app🚀 Building web client for production... $ npm install...found 0 vulnerabilities$ REACT_APP_API_URL=https://spellfast-server.fly.dev npm run build <-- // should be https://api.spellfast.ai
Server has been deployed! 🚀 Deploying your client now... $ cd /home/regent116/SpellFast/spellfast/app/.wasp/build/web-app🚀 Building web client for production... $ npm install...found 0 vulnerabilities$ REACT_APP_API_URL=https://spellfast-server.fly.dev npm run build <-- // should be https://api.spellfast.ai
Frustration is setting in as I try to configure my backend to work with my custom domain, but I can't pinpoint my mistake.