DEV Community

Discussion on: empress-blog + netlify = Page Not Found?

Collapse
 
real_ate profile image
Chris Manson

Hey Michal, there is another explanation why this isn’t working for you (at least in the empress-blog situation).

When you follow the readme for empress-blog it tells you to “ember install empress-blog”, this may seem like it’s the same as “npm install” but it actually does extra work to install ember-cli-fastboot and prember. With these all working together you should have no page on your site that isn’t pre-rendered.

There are other benefits but it avoids the need for the redirect anyway 😂

Collapse
 
michalbryxi profile image
Michal Bryxí

That might be the issue indeed. So if I do that then the /dist build will contain a statically built HTML file for every article? Otherwise this would IMO not work with static hosting.

Collapse
 
real_ate profile image
Chris Manson

Yes! empress-blog and prember manage all this for you, you just need to make sure you have the right stuff installed 👍 empress-blog (and all Empress projects) are specifically designed to work awesomely with static hosting

Thread Thread
 
michalbryxi profile image
Michal Bryxí • Edited

Purrrfect. Updated. Thank you! 🙇🏻 I'm not sure where did my mistake came from because I stumbled on it in quite few independent projects and I'm too lazy to type out the commands, so I'm somewhat sure I used ember install ... 🤷🏻