Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle absolute paths in
REACT_SERVER_CONFIGS
(#901)
Looks like #871 introduced a regression where absolute paths are no longer supported in the `REACT_SERVER_CONFIGS` environment variable. This can be addressed by using `path.resolve`: ```js > path.resolve("/home/foo", "bar/baz", "config"); '/home/foo/bar/baz/config' > path.resolve("/home/foo", "/bar/baz", "config"); '/bar/baz/config' ``` In place of `path.join`: ```js > path.join("/home/foo", "bar/baz", "config"); '/home/foo/bar/baz/config' > path.join("/home/foo", "/bar/baz", "config"); '/home/foo/bar/baz/config' ``` I also removed the path concatenation (`... + "/config"`).
- Loading branch information