Skip to content
This repository was archived by the owner on Jan 16, 2018. It is now read-only.

Static Build #46

Open
chrismcv opened this issue Mar 5, 2015 · 5 comments
Open

Static Build #46

chrismcv opened this issue Mar 5, 2015 · 5 comments

Comments

@chrismcv
Copy link

chrismcv commented Mar 5, 2015

Hi,
I was wondering if it is possible to generate a static build using this starter package? For production, I'd quite like to just plonk a folder into an nginx server, rather than having express running the application. Is that possible?

Thanks,
Chris

@sokra
Copy link
Member

sokra commented Mar 5, 2015

Propably... You could disable prerendering and use a static html page. react-router need to be switched to hash based mode.

You would loose some benefits like prerendering and pretty urls, but I think it is possible.

@maletor
Copy link

maletor commented Apr 3, 2015

Possible, but a crying shame.

@stream7
Copy link

stream7 commented Apr 3, 2015

if you are using nginx you can use something like this to keep your pretty urls and push state router

location / {
    try_files $uri /index.html;
}

@josephfinlayson
Copy link

#82 gives this capability, you'd have to make react router hash based in the code though

@josephfinlayson
Copy link

@chrismcv - could you test this?
#82

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants