File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/astro/src/integration Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,13 @@ function getSourcemapsAssetsGlob(config: AstroConfig): string {
106106 // only copied over to <root>/.vercel. This seems to happen too late though.
107107 // So we glob on both of these directories.
108108 // Another case of "it ain't pretty but it works":(
109- if ( config . adapter && config . adapter . name ?. startsWith ( '@astrojs/vercel' ) ) {
109+ if ( config . adapter ? .name ?. startsWith ( '@astrojs/vercel' ) ) {
110110 return '{.vercel,dist}/**/*' ;
111111 }
112112
113113 // paths are stored as "file://" URLs
114114 const outDirPathname = config . outDir && path . resolve ( config . outDir . pathname ) ;
115- const rootDirName = path . resolve ( ( config . root && config . root . pathname ) || process . cwd ( ) ) ;
115+ const rootDirName = path . resolve ( config . root ?. pathname || process . cwd ( ) ) ;
116116
117117 if ( outDirPathname ) {
118118 const relativePath = path . relative ( rootDirName , outDirPathname ) ;
You can’t perform that action at this time.
0 commit comments