@@ -18,48 +18,65 @@ const AppHeader = ({ name = "oomph", icon = "/favicon.png" }) => {
1818 < link rel = "stylesheet" href = "/output.css" />
1919 < link rel = "manifest" href = "/manifest.json" />
2020 < meta property = "og:title" content = "Sauveur Dev" />
21- < meta
21+ < meta
2222 property = "og:description"
2323 content = "For the people who shape culture, Glimpse into the future of trade."
24- />
25- < meta property = "og:image" content = "/background.jpg" />
26- < meta property = "og:url" content = "https://sauveur.dev" />
24+ />
25+ < meta property = "og:image" content = "/background.jpg" />
26+ < meta property = "og:url" content = "https://sauveur.dev" />
2727
28- < meta name = "twitter:title" content = "Sauveur Dev" />
29- < meta
28+ < meta name = "twitter:title" content = "Sauveur Dev" />
29+ < meta
3030 name = "twitter:description"
3131 content = "For the people who shape culture, Glimpse into the future of trade."
32- />
33- < meta name = "twitter:image" content = "/background.jpg" />
34- < meta name = "twitter:card" content = "summary_large_image" />
35- < meta
32+ />
33+ < meta name = "twitter:image" content = "/background.jpg" />
34+ < meta name = "twitter:card" content = "summary_large_image" />
35+ < meta
3636 name = "description"
3737 content = "For the people who shape culture, Glimpse into the future of trade."
38- />
38+ />
3939
4040 { /*https://developer.mozilla.org/en-US/docs/Web/Manifest*/ }
4141 </ head >
4242 ) ;
4343} ;
4444export default async ( { name, icon } ) => {
4545 let manifest = { name : "oomph" , icon : "/favicon.png" } ;
46- // const manifest_path = `file:///${window._cwd}/src/public/manifest.json`;
47-
46+ const manifest_path = `${ window . _cwd } /src/public/manifest.json` ;
47+
48+ // file:///$
49+ try {
50+ console . log ( await exists ( manifest_path ) , "manifest exists" ) ;
51+ const { default : _manifest } = await import (
52+ manifest_path ,
53+ {
54+ assert : {
55+ type : "json" ,
56+ } ,
57+ }
58+ ) ;
59+
60+ console . log ( _manifest , "manifest file" ) ;
61+ } catch ( err ) {
62+ console . log ( err ) ;
63+ }
64+
4865 // if (exists(manifest_path)) {
4966 // console.log(manifest_path, "it exists")
50- // const { default: _manifest } = await import(
51- // manifest_path,
52- // {
53- // assert: {
54- // type: "json",
55- // },
56- // }
57- // );
67+ // const { default: _manifest } = await import(
68+ // manifest_path,
69+ // {
70+ // assert: {
71+ // type: "json",
72+ // },
73+ // }
74+ // );
5875 // manifest.name = _manifest.name;
5976 // manifest.icon = _manifest.icons[0].src;
6077 // }
6178
6279 return renderToString (
6380 < AppHeader name = { manifest . name } icon = { manifest . icon } /> ,
64- ) ;
81+ ) ;
6582} ;
0 commit comments