Skip to content

Commit f42cab3

Browse files
Version Packages (#403)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent dd59183 commit f42cab3

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

.changeset/vite-runtime-public-path.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/gdu/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# gdu
22

3+
## 13.16.0
4+
5+
### Minor Changes
6+
7+
- dd59183: feat(gdu): add runtime public path resolution for Vite builds
8+
9+
Vite builds could not use Octopus Deploy `#{PUBLIC_PATH_BASE}` tokens
10+
because the `base` config gets baked into minified JS where token
11+
substitution fails. This caused CSS and JS chunks to load from incorrect
12+
paths (`/chunks/...` instead of the CDN URL), resulting in `text/html` MIME
13+
type errors in deployed environments.
14+
15+
Added `runtimePublicPath` plugin that derives the CDN base URL at runtime
16+
from `import.meta.url` of the entry chunk — mirroring how webpack's
17+
`__webpack_require__.p` mechanism works via `set-public-path.js`.
18+
19+
Also passes `publicPath` to `guruBuildManifest` in production Vite builds so
20+
`build-manifest.json` contains correctly prefixed asset paths for the app
21+
shell Lambda to inject.
22+
323
## 13.15.0
424

525
### Minor Changes

packages/gdu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gdu",
3-
"version": "13.15.0",
3+
"version": "13.16.0",
44
"description": "AutoGuru's development toolkit",
55
"homepage": "https://github.com/autoguru-au/octane/tree/master/packages/gdu#readme",
66
"repository": "https://github.com/autoguru-au/octane/tree/master/packages/gdu",

0 commit comments

Comments
 (0)