File tree 2 files changed +14
-4
lines changed 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,15 @@ export { Components, JSX } from './components';
4
4
5
5
export const Router = createRouter ( ) ;
6
6
import { defineCustomElements } from 'stenciljs-components/loader' ;
7
- defineCustomElements ( window ) ;
7
+ async function initializeStencilComponents ( ) {
8
+ console . log ( 'Initializing StencilJS components...' ) ;
9
+ await defineCustomElements ( window , {
10
+ resourcesUrl : './build/' , // Adjust based on your deployment structure
11
+ } ) ; // Pass the global `window` object
12
+ console . log ( 'StencilJS components initialized.' ) ;
13
+ }
14
+ initializeStencilComponents ( ) ;
15
+
8
16
import { fluidEnvironments } from '../fluid' ;
9
17
const script = document . createElement ( 'script' ) ;
10
18
/**
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ export const config: Config = {
15
15
{
16
16
type : 'www' , // Optional, for a local development server
17
17
// comment the following line to disable service workers in production
18
- serviceWorker : null ,
18
+ // baseUrl: '/', //Adjust based on your hosting setup
19
+ // baseUrl: 'https://sanjeetkumaritoutlook.github.io/',
20
+ // baseUrl:'/build/', //like in fluid it opens to localhost:3333/fluid/
19
21
// baseUrl: 'https://myapp.local/',
20
- // baseUrl:'/ build/ ', like in fluid it opens to localhost:3333/fluid/
21
- // baseUrl: '/', Adjust based on your hosting setup
22
+ // buildDir: ' build', // Ensure this matches the build folder
23
+ serviceWorker : null ,
22
24
} ,
23
25
24
26
] ,
You can’t perform that action at this time.
0 commit comments