@epic-web/workshop-utils 6.85.1 → 6.85.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/epic-api.server.js +0 -4
- package/package.json +1 -1
package/dist/epic-api.server.js
CHANGED
|
@@ -212,10 +212,6 @@ async function getEpicVideoInfo({ epicVideoEmbed, accessToken, request, timings,
|
|
|
212
212
|
videoInfoLog.error(`unsupported host for video URL: ${epicUrl.host}`);
|
|
213
213
|
return null;
|
|
214
214
|
}
|
|
215
|
-
// this may be temporary until the /tutorials/ endpoint supports /api
|
|
216
|
-
if (epicUrl.pathname.startsWith('/tutorials/')) {
|
|
217
|
-
epicUrl.pathname = epicUrl.pathname.replace(/^\/tutorials\//, '/workshops/');
|
|
218
|
-
}
|
|
219
215
|
const epicPathSegments = epicUrl.pathname.split('/').filter(Boolean);
|
|
220
216
|
if (epicPathSegments.at(-1) === 'embed') {
|
|
221
217
|
epicPathSegments.pop();
|