Commit adca0f5
authored
fix(nuxt): Only use filename with file extension from command (#15445)
The Nuxt SDK also uses the preview command to determine where to put the
Sentry top-level import. Like this: `node .output/server/index.mjs`
(would add Sentry to `index.mjs`)
However, the function to get the file name also used folder names
without file extensions which led to Sentry not being included at the
top of the index file.
This was a problem in e.g. Azure as the command is the following: `npx
@azure/static-web-apps-cli start ./public --api-location ./server`1 parent d42d04f commit adca0f5
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
| |||
0 commit comments