@ax2/multisite-module
Advanced tools
+10
-0
@@ -5,2 +5,12 @@ # Change Log | ||
| <a name="0.2.0"></a> | ||
| # [0.2.0](https://github.com/ax2inc/multisite-module/compare/v0.1.1...v0.2.0) (2018-09-27) | ||
| ### Features | ||
| * Add debug to force usage of query string when needed ([eae1309](https://github.com/ax2inc/multisite-module/commit/eae1309)) | ||
| <a name="0.1.1"></a> | ||
@@ -7,0 +17,0 @@ ## [0.1.1](https://github.com/ax2inc/multisite-module/compare/v0.1.0...v0.1.1) (2018-09-15) |
+1
-0
| export const DEFAULT_OPTIONS = { | ||
| sites: [], | ||
| debug: false, | ||
| }; | ||
@@ -4,0 +5,0 @@ |
@@ -15,2 +15,3 @@ import Cookies from 'js-cookie'; | ||
| const sites = <%= JSON.stringify(options.sites) %>; | ||
| const debug = <%= options.debug %>; | ||
| const QUERY_SITE_ID_KEY = '<%= options.QUERY_SITE_ID_KEY %>'; | ||
@@ -29,3 +30,3 @@ const COOKIE_SITE_KEY = '<%= options.COOKIE_SITE_KEY %>'; | ||
| // In development, get current site from cookies or query string | ||
| if (isDev) { | ||
| if (debug || isDev) { | ||
| currentSiteId = query[QUERY_SITE_ID_KEY]; | ||
@@ -32,0 +33,0 @@ |
+1
-1
| { | ||
| "name": "@ax2/multisite-module", | ||
| "version": "0.1.1", | ||
| "version": "0.2.0", | ||
| "description": "Multisite features for your Nuxt project", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+7
-0
@@ -58,2 +58,9 @@ # multisite-module | ||
| ### debug | ||
| - Type: `Boolean` | ||
| - **Default**: `false` | ||
| Set this to `true` to force the module to get the current site from the query string. | ||
| ### sites | ||
@@ -60,0 +67,0 @@ |
11780
4.06%119
1.71%186
3.91%