Skip to content

Commit 2e8c0d6

Browse files
committed
fix: Fix leading slashes in asset urls
1 parent 0076e1f commit 2e8c0d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Transcoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __construct($id, $parent = null, array $config = [])
8181
'useDevServer' => true,
8282
'devServerPublic' => 'http://localhost:3001',
8383
'serverPublic' => 'http://localhost:8000',
84-
'errorEntry' => '/src/js/app.ts',
84+
'errorEntry' => 'src/js/app.ts',
8585
'devServerInternal' => 'http://craft-transcoder-buildchain:3001',
8686
'checkDevServer' => true,
8787
],

src/templates/_layouts/transcoder-cp.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
'nystudio107\\transcoder\\assetbundles\\transcoder\\TranscoderAsset'
88
],
99
} %}
10-
{{ craft.transcoder.register('/src/js/app.ts', false, tagOptions, tagOptions) }}
10+
{{ craft.transcoder.register('src/js/app.ts', false, tagOptions, tagOptions) }}
1111
{% endblock %}

src/templates/welcome.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'nystudio107\\transcoder\\assetbundles\\transcoder\\TranscoderAsset'
2222
],
2323
} %}
24-
{{ craft.transcoder.register('/src/js/welcome.ts', false, tagOptions, tagOptions) }}
24+
{{ craft.transcoder.register('src/js/welcome.ts', false, tagOptions, tagOptions) }}
2525
{% endblock %}
2626

2727
{% block content %}

0 commit comments

Comments
 (0)