Borba
Borba
SSolidJS
Created by Borba on 8/26/2024 in #support
Netlify + Web Component
Whats up?! I'm new to Solid + Netlify. I'm trying to import my Stencil Web Component via NPM Dependency into my Solid app. Everything works fine on DEV mode, but when I build it with the preset of Netlify and run it, the web component entry files are not being found:
GET http://localhost:3000/_build/assets/my-web-component.entry.js file: client-B7HzZZpt.js:214 net::ERR_ABORTED 404 (Not Found) I imagine that I should somehow force Server build to include files from this dependency. Is this correct? Am I doing something wrong? This is the server prop definition on my my app.config:
...
server: {
preset: "netlify",
prerender: {
crawlLinks: true,
autoSubfolderIndex: false,
failOnError: true,
ignore: [/\{\getPath}/, /.*?emojiSvg\(.*/],
}
},
...
...
server: {
preset: "netlify",
prerender: {
crawlLinks: true,
autoSubfolderIndex: false,
failOnError: true,
ignore: [/\{\getPath}/, /.*?emojiSvg\(.*/],
}
},
...
Any help would be very appreciated! Thanks in advance!
2 replies