Try to fix build

This commit is contained in:
Kristian Takvam 2025-10-06 19:46:53 +02:00
parent 96ba26629b
commit 60bc4246ce
3 changed files with 13 additions and 1 deletions

View File

@ -37,4 +37,14 @@ export default defineConfig({
},
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
},
},
});

View File

@ -1,5 +1,5 @@
{
"name": "Astrogon",
"name": "astrogon",
"version": "1.0.0",
"description": "Template.",
"author": "Jane Doe",

View File

@ -172,6 +172,8 @@ Maybe you don't need to see everything all the time geez.
### Youtube video
<Youtube client:load id="9Kfv1WeoAvk" title="Riebeck's Banjo"/>
---
### Image