Try to fix build
This commit is contained in:
parent
96ba26629b
commit
60bc4246ce
|
|
@ -37,4 +37,14 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
extendDefaultPlugins: true
|
extendDefaultPlugins: true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Stop Vite from SSR/prebundling CommonJS packages
|
||||||
|
vite: {
|
||||||
|
ssr: {
|
||||||
|
noExternal: ["react-lite-youtube-embed"], // prevent SSR import
|
||||||
|
},
|
||||||
|
optimizeDeps: {
|
||||||
|
exclude: ["react-lite-youtube-embed"], // don't prebundle it
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "Astrogon",
|
"name": "astrogon",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Template.",
|
"description": "Template.",
|
||||||
"author": "Jane Doe",
|
"author": "Jane Doe",
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,8 @@ Maybe you don't need to see everything all the time geez.
|
||||||
|
|
||||||
### Youtube video
|
### Youtube video
|
||||||
|
|
||||||
|
<Youtube client:load id="9Kfv1WeoAvk" title="Riebeck's Banjo"/>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Image
|
### Image
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue