-
Notifications
You must be signed in to change notification settings - Fork 39
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
Refactor config #4133
Refactor config #4133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, I get the following warning when starting webapp:
ERROR [HPM] Missing "target" option. Example: {target: "http://www.example.org"} 14:11:47
at Object.createConfig (node_modules/http-proxy-middleware/lib/config-factory.js:43:11)
at new HttpProxyMiddleware (node_modules/http-proxy-middleware/lib/index.js:17:30)
at module.exports (node_modules/http-proxy-middleware/index.js:4:10)
at node_modules/@nuxtjs/proxy/lib/module.js:63:30
at Array.forEach (<anonymous>)
at ModuleContainer.proxyModule (node_modules/@nuxtjs/proxy/lib/module.js:61:9)
at ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:215:34)
at ModuleContainer.requireModule (node_modules/@nuxt/core/dist/core.js:133:17)
at ModuleContainer.axiosModule (node_modules/@nuxtjs/axios/lib/module.js:106:10)
at ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:215:34)
This message is new.
I can reach localhost:3000 but have the following new warnings inn the console:
[Vue warn]: Error in render: "TypeError: this.notifications is undefined"
TypeError: this.notifications is undefined
I can not login!
Error Network error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
As far as I can see, the backend is running fine (port 4000 and tests) but the webapp is not running (although the tests pass).
fce2302
to
68a8ba5
Compare
Good catch! It's fixed |
- default for STYLEGUIDE_DEV config
7fde4d8
to
a6bd428
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Everything is working as expected
🍰 Pullrequest
Refactor the config handling for front- and backend.
Issues
Todo