File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ import { runtimeTelemetryPlugin } from "@github/spark/telemetryPlugin";
1111import sparkAgent from "@github/spark/agent-plugin" ;
1212import { tagSourcePlugin , designerHost } from "@github/spark/designerPlugin" ;
1313import createIconImportProxy from "@github/spark/vitePhosphorIconProxyPlugin" ;
14+ import { resolve } from 'path'
1415
1516const extraPlugins : PluginOption [ ] = [ ] ;
1617
1718const GITHUB_RUNTIME_PERMANENT_NAME = process . env . GITHUB_RUNTIME_PERMANENT_NAME || process . env . CODESPACE_NAME ?. substring ( 0 , 20 ) ;
19+ const projectRoot = process . env . PROJECT_ROOT || "/workspaces/spark-template"
1820
1921// https://vite.dev/config/
2022export default defineConfig ( {
@@ -82,8 +84,8 @@ export default defineConfig({
8284 } ,
8385 resolve : {
8486 alias : {
85- "@" : "/workspaces/spark-template/ src"
87+ '@' : resolve ( projectRoot , ' src' )
8688 }
8789 } ,
8890 customLogger : createLogToFileLogger ( ) ,
89- } ) ;
91+ } ) ;
You can’t perform that action at this time.
0 commit comments