Skip to content

Commit f8b8fd3

Browse files
committed
fix: remove temporary tutorial URL handling from getEpicVideoInfo function
1 parent 0bda1fa commit f8b8fd3

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

packages/workshop-utils/src/epic-api.server.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,6 @@ async function getEpicVideoInfo({
292292
return null
293293
}
294294

295-
// this may be temporary until the /tutorials/ endpoint supports /api
296-
if (epicUrl.pathname.startsWith('/tutorials/')) {
297-
epicUrl.pathname = epicUrl.pathname.replace(
298-
/^\/tutorials\//,
299-
'/workshops/',
300-
)
301-
}
302295
const epicPathSegments = epicUrl.pathname.split('/').filter(Boolean)
303296
if (epicPathSegments.at(-1) === 'embed') {
304297
epicPathSegments.pop()

0 commit comments

Comments
 (0)