shopify-app-template-node
shopify-app-template-node copied to clipboard
[WIP] Fix server-side rendering for App Bridge v4
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.