Commit 85a494a
authored
fix(astro): Configure sourcemap assets directory for Vercel adapter (#9665)
This PR adds support for uploading sourcemaps when using the
`@astrojs/vercel/*` adapters.
It seems that the adapter updates the config.outdir value too late for
our previous detection logic to
correctly detect the .vercel output directory. Furthermore, the adapter
for some reason first saves server
files to <root>/dist only to copy it later to <root>/.vercel/functions.
This copy command seems to happen too
late for when our sourcemaps plugin runs.
For these two reasons, we try to detect the used adapter (love that this
is much simpler in Astro than
Sveltekit) and adjust the assets glob to search for files in both,
`dist` and `.vercel`.1 parent 7249cf9 commit 85a494a
File tree
2 files changed
+37
-0
lines changed- packages/astro
- src/integration
- test/integration
2 files changed
+37
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
103 | 113 | | |
104 | 114 | | |
105 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
86 | 113 | | |
87 | 114 | | |
88 | 115 | | |
| |||
0 commit comments