Not suitable to use `process.env.PUBLIC` on Win
-
I'm submitting a ... [x] bug report [ ] feature request [ ] question about the decisions made in the repository
-
Do you want to request a feature or report a bug?
- Reporting a bug
-
What is the current behavior?
-
Windows 10
-
clone master that is after [e1f25d9] (commited by @patricknazar )
-
npm start- My browser try to open
c/Users/Public/when execnpm start. - This comes from
inconst PUBLIC = process.env.PUBLIC || undefined;/config/webpack.dev.js- https://github.com/AngularClass/angular-starter/blob/master/config/webpack.dev.js#L24
- My browser try to open
-
What is the expected behavior?
- Browser try to open
http://${HOST}:${PORT}.
- Browser try to open
-
What is the motivation / use case for changing the behavior?
- Windows set the environment variable
PUBLIC=c:\Users\Public - But most of windows users don't notice
process.env.PUBLIChas already been set. - IMO, it's better to define the different env var instead of
PUBLIC- e.g.
const PUBLIC = process.env.PUBLIC_DEV || undefined;
- Windows set the environment variable
-
Please tell us about your environment:
- Angular version: ~4.3.1
- angular-starter: [e1f25d9]
- Browser: Firefox 52.3.0 (32 bit)
Fair point. Thoughts on this?
Same, i had to add PUBLIC=d:\Projects\Public to my .env
but still the info?t= gives error cuz its looking for
http://d/Projects/Public/info?t=1502420042548
+1 Also have this issue
can someone make a PR for this?
Hi. I have an issue like this. In my console show me this https://gist.github.com/diegohdez90/76d0b6a0a85e0bd796814822c8686eb8.
Check out in the line 12.
My application is running at http://localhost:3000
Same here.