Skip to content

← All questions

Every generated API scenario hits the UI origin — ui and api baseUrl came out identical

Asked 1,980 views2 answers

Fresh project from analyze. The starter @api features all fail with HTML where JSON should be, and the reason is in the env file:

yaml
ui:
  baseUrl: http://localhost:3000
api:
  baseUrl: http://localhost:3000

Our API is at /api on the same origin. I expected the /api suffix to be there. It is a Next app; the only Express in the repo is a small socket server in another package.

asked by Yusuf Demir201 ·

2 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related