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

Fastboot support/ virtualise embroider_macros_fastboot_init.js #2034

Open
BlueCutOfficial opened this issue Jul 10, 2024 · 0 comments
Open

Comments

@BlueCutOfficial
Copy link
Collaborator

About FastBoot support

Fastboot is a solution to run Ember applications server-side, in a Node.js environment. (Like every documentation in the Ember world, Fastboot introduction to server-side rendering offers very enlightening comparisons to teach the concept).

To use Fastboot, you have to install ember-cli-fastboot. In other words, if this specific addon is present in the list of active addons used by your app, then it means that a bunch of Fastboot-related things need to be there and work as expected in the new Embroider world.

embroider_macros_fastboot_init.js

embroider_macros_fastboot_init.js is a script asset created in the rewritten app. Once created, it used to be referenced in the index.html under a <fastboot-script> tag. This is no longer the case since we no longer modify the index.html between the initial Ember app and the rewritten app consumed by Vite.

This task consists of:

  • Virtualizing embroider_macros_fastboot_init.js so Embroider provides its content to Vite.
  • If necessary, emitting assets/embroider_macros_fastboot_init.js in the production build.
@BlueCutOfficial BlueCutOfficial converted this from a draft issue Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant