Commit 1e5e3e5
authored
fix(deploy): use lines[-1] for wrapper CID + add version to summary (#86)
PR #85 took lines[-2] from the IPFS gateway response, copying
aleph-cloud-app's pattern. But their tree shape differs: they prefix
paths with `out/` so lines[-2] gives them the served root inside an
extra wrapper. Our flat paths produce one wrapper at lines[-1] and
random sub-directories at earlier indices — the last deploy was
serving from a sub-directory, so HTML loaded but nested asset paths
(/_next/static/...) 404'd, breaking all styling.
Also adds CURRENT_VERSION (extracted from src/changelog.ts in the
workflow) to the deploy summary so the deployed version is visible
without inspecting the build.1 parent 8cdc4af commit 1e5e3e5
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | | - | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
0 commit comments