This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add possibility to declare nuxtent options `api` key as a function given the `isStatic` parameter to adjust Axios options when using `nuxt generate` ```json { content: { page: '/_slug', permalink: '/:year/:slug', generate: ['get', 'getAll'] }, api: function(isStatic) { return { browserBaseURL: !isStatic ? '' : 'https://my.company.com' } } } ``` - all nuxtent options present in `api` key are now forwarded to axios fixes #92
- Loading branch information
1 parent
d519f29
commit 6beb187
Showing
2 changed files
with
85 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters