Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Warning - Watching Admin/Website Without Having API Deployed #4350

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Oct 24, 2024

Changes

Prior to this PR, we had this PR that was supposed to block watching Admin/Website apps in case API was not deployed.

Turns out, this does not work for users that might be connecting their locally started Admin/Website app to a shared / already deployed API, which can be done via a couple of customizations via respective webiny.config.ts files. Those users would basically get blocked.

Because of this, I've removed the before-watch checks that the linked PR introduced. Instead, I've added a check in app config factories. Basically, in case stack output was not retrieved successfully, a warning message will be displayed in the console.

image

This way, the user won't get blocked.

Note

It would be nice if some day we were able to introduce a more straightforward way of connecting locally started Admin/Website apps to a shared / already deployed API.

How Has This Been Tested?

Manually.

Documentation

Changelog.

@adrians5j adrians5j changed the title wip Add Warning - Watching Admin/Website Without Having API Deployed Oct 24, 2024
@adrians5j adrians5j merged commit 17dbed5 into dev Oct 24, 2024
126 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant