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

Static Build #46

Open
Open

Description

@chrismcv

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

Activity

  1. sokra commented on Mar 5, 2015

    @sokra
    Member

    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.

  2. maletor commented on Apr 3, 2015

    @maletor

    Possible, but a crying shame.

  3. stream7 commented on Apr 3, 2015

    @stream7

    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;
    }
    
  4. josephfinlayson commented on Jun 19, 2015

    @josephfinlayson

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

  5. josephfinlayson commented on Jun 24, 2015

    @josephfinlayson

    @chrismcv - could you test this?
    #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions