Skip to content
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

Merged
merged 4 commits into from
Jan 28, 2021
Merged

Refactor config #4133

merged 4 commits into from
Jan 28, 2021

Conversation

ulfgebhardt
Copy link
Member

🍰 Pullrequest

Refactor the config handling for front- and backend.

Issues

Todo

  • The frontend uses two config packages - nuxt has a new way of handling configs and the nuxt.js.config is used for a third option to define config values. This needs to be unified. Make a Ticket before closing.

@ulfgebhardt ulfgebhardt added this to the 21/01 January milestone Jan 14, 2021
@ulfgebhardt ulfgebhardt requested review from Mogge and Tirokk January 14, 2021 21:18
@ulfgebhardt ulfgebhardt self-assigned this Jan 14, 2021
Mogge
Mogge previously requested changes Jan 22, 2021
Copy link
Contributor

@Mogge Mogge left a 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).

@ulfgebhardt
Copy link
Member Author

Good catch! It's fixed

@ulfgebhardt ulfgebhardt changed the base branch from master to 234-fix January 28, 2021 16:48
@ulfgebhardt ulfgebhardt changed the base branch from 234-fix to master January 28, 2021 16:49
Copy link
Contributor

@Mogge Mogge left a 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

@ulfgebhardt ulfgebhardt merged commit 35cfcfc into master Jan 28, 2021
@ulfgebhardt ulfgebhardt deleted the refactor_config branch January 28, 2021 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔧 [Refactor] Config
2 participants