Closed greenkeeper[bot] closed 7 years ago
Update to this version instead 🚀
Pushstate routing is now handled automatically when SSR is turned off using the --static
option. Static files are still first priority. If a static file doesn't exist for a URL, and the request is pushstate compatible (meaning it isn't for a file with an extension or might contain the ?
character) an .html
file based on the current environment will be loaded.
DoneJS applications come with a development.html
file and a production.html
file in the project root. With any environment other than development
, it will first attempt to find an .html
file named after the current environment (process.env.NODE_ENV
). For example, if the current NODE_ENV
is qa
, the server will check if qa.html
exists. If it does, qa.html
will be served. If not, the server will check for and load production.html
.
If no .html
file exists for the current environment, and there's no production.html
, the request will return a 404.
PR: #30
Update to this version instead 🚀
This is a minor release that adds the ability to pass a path for the root directory:
Version 1.0.0 of done-serve just got published.
The version 1.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of done-serve. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Commits
The new version differs by 16 commits .
209a812
1.0.0
d3cc0ea
Merge pull request #25 from donejs/major
5649120
Merge pull request #10 from donejs/4-env-to-development
1000a57
Merge pull request #15 from donejs/export-cli-server
4f9de46
1.0.0-alpha.0
52c5f89
Merge pull request #21 from donejs/update-dependencies
c56e671
testing on node 4,6,7 for now
3427f8b
updating to latest can 3 packages and getting tests working
8fc90f8
Merge branch 'can3' into major
263c74c
Upgrade to use can3
6937ac3
Merge pull request #18 from donejs/master-major
3ea7c98
Merge branch 'master' into master-major
5fc5ac4
Export the server returned from .run()
e2e3946
0.3.0-pre.0
052ef0c
Upgrade to use can3
There are 16 commits in total. See the full diff.
Not sure how things should work exactly?
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper Bot :palm_tree: