This is bugging me as it is a bit of a hurdle I can’t see how we overcome.
I want to be able to add JSON to a preload store (or initialize a model when the app loads) in index.html before it reaches the browser. to do this using a preload store I would need the ember app to live inside some sort of server side app - we use .NET and ServiceStack.
I can get my server side code to treat index.html as dynamic so i can output the JSON for the preload store - however - if i put this in the /dist folder I get errors where .js files aren’t found.
So I guess the question is:
When I do
Where are these files loaded from? It’s not /dist it’s not /app
Where should I put this code? Others must have ran into this issue?