Skip to content

docs: Add Now deployment guide #2058

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

Closed
wants to merge 1 commit into from
Closed

docs: Add Now deployment guide #2058

wants to merge 1 commit into from

Conversation

lucaperret
Copy link

Updated the deployment documentation to add ▲ZEIT now.

Alternative to #2022

@Alex-Sokolov
Copy link
Collaborator

Alex-Sokolov commented Aug 3, 2018

@lucaperret But we already can use their server, if create now.json in build folder with contents:

{
  "static": {
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

Will work with router in history mode

@ivansieder
Copy link
Contributor

Great and concise write-up! For curiosity, Is there an advantage to deploy it with server instead of deploying the static files directly?

@lucaperret
Copy link
Author

It depends on your code and dependencies.
Building on specific node or npm engine can result differencies in the bundled code.
This is why I prefer to let now build my app.

@yyx990803
Copy link
Member

I think I'll go with #2022 due to one less local dependency to install, but thanks for the PR.

@yyx990803 yyx990803 closed this Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants