shopify-app-template-node icon indicating copy to clipboard operation
shopify-app-template-node copied to clipboard

[WIP] Fix server-side rendering for App Bridge v4

Open paulomarg opened this issue 3 months ago • 0 comments

WHY are these changes introduced?

As part of updating the template to use App Bridge React v4, we'll need to include the api key in the index.html file, which is served by the backend of the app.

Vite will handle replacing it in client-side renders, which is why the variable needs to start with a VITE_.

WHAT is this pull request doing?

Dynamically replacing the api key when serving that file.

paulomarg avatar May 06 '24 17:05 paulomarg