<!--- Provide a general summary of your changes in the title above -->
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
## Description
<!--- Describe your changes in detail -->
<!--- Why is this change required? What problem does it solve? -->
<!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #1337" -->
Corrected `crendentials` to `credentials` in the ["Auth External API" example](https://github.com/nuxt/nuxt.js/tree/dev/examples/auth-jwt). Text-only change.
## Checklist:
<!--- Put an `x` in all the boxes that apply. -->
<!--- If your change requires a documentation PR, please link it appropriately -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly. (PR: #)
- [ ] I have added tests to cover my changes (if not applicable, please state why)
- [x] All new and existing tests passed.
* feat: support `server` option in `nuxt.config.js` to set PORT and HOST
* lint
* change the conifg priority to `argv > nuxt.config.js > env.NUXT_PORT > env.PORT > package.json > default`
* check for `options.server`
Today I was implementing an i18n according to this example in one of my projects. Unfortunately, current example fails if (for example) our `defaultLocale` is `en` and our url is `example.com/en/` or `example.com/en/news`: middleware redirects into `example.com//` and `example.con//news` respectively.
I've fixed the example (not sure if it is the most elegant way to do it though), so it replaces `/en/` with `/`.
* added missing eslint-loader that prevented the example to run and changed freeWorker to terminate a worker and create a new since we can not really free a worker
* proper remove long running worker from longRunningWorkers array when done
* polish web-worker example
set nuxt to 'latest' version
this will change
this will also change
detail:
1. 'beforeAll' no longer support
change to 'test.before'
2. renderAndGetWindow
const window = await nuxt.renderAndGetWindow('http://localhost:4000/')
does not return 'window'.
if url change to real server return window
but test server just return html.
so change to JSDOM way.