You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cdn): change default value of baseUrl to empty string (#423)
`cdnBaseUrl` is settable via the project.json or via attribute/property. The property takes precedence over the project.json, and if neither is defined it defaults to unpkg.com. By having a default value for the property, then in order to take a value from the config, then the user would need to explicitly set the property / attribute to `''`.
Confirmed this works by setting the cdnBaseUrl in project/project.json in the configurator
|`projectSrc`|`string`|`undefined`| URL of the [project manifest](#project-manifest) to load |
684
684
|`config`|`ProjectManifest`|`undefined`| Get or set the project configuration and files, ([details](#option-3-config-property)). |
685
-
|`cdnBaseUrl`|`string`|`https://unpkg.com`| Change the underlying npm CDN base url. Confirmed tested are `htts://unpkg.com` and `https://cdn.jsdelivr.net/npm`|
685
+
|`cdnBaseUrl`|`string`|`""`| Change the underlying npm CDN base url. Confirmed tested are `htts://unpkg.com` and `https://cdn.jsdelivr.net/npm`. Note: Default `""` resolves to `https://unpkg.com`|
686
686
|`lineNumbers`|`boolean`|`false`| Render a gutter with line numbers in the editor |
687
687
|`lineWrapping`|`boolean`|`false`| If `true`, long lines are wrapped, otherwise the editor will scroll. |
688
688
|`editableFileSystem`|`boolean`|`false`| Allow adding, removing, and renaming files |
|`projectSrc`|`string`|`undefined`| URL of a [project files manifest](#option-2-json-manifest) to load. |
715
715
|`config`|`ProjectManifest`|`undefined`| Get or set the project configuration and files, ([details](#option-3-config-property)). |
716
-
|`cdnBaseUrl`|`string`|`https://unpkg.com`| Change the underlying npm CDN base url. Confirmed tested are `htts://unpkg.com` and `https://cdn.jsdelivr.net/npm`|
716
+
|`cdnBaseUrl`|`string`|`""`| Change the underlying npm CDN base url. Confirmed tested are `htts://unpkg.com` and `https://cdn.jsdelivr.net/npm`. Note: Default `""` resolves to `https://unpkg.com`|
717
717
|`sandboxScope`|`string`|`"playground-elements"`| The service worker scope to register on. |
718
718
|`sandboxBaseUrl`|`string`|_module parent directory_| Base URL for untrusted JavaScript execution (⚠️ use with caution, see [sandbox security](#sandbox-security)). Resolved relative to the module containing the definition of `<playground-project>`. |
719
719
|`diagnostics`|`Map<string, lsp.Diagnostic>`|`undefined`| Map from filename to array of Language Server Protocol diagnostics resulting from the latest compilation. |
0 commit comments