-
Notifications
You must be signed in to change notification settings - Fork 21
fix(sveltekit): specify better output location #380
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @benmccann, can you point me to the relevant docs that show the location of the build directory?
I tried running a build locally and it builds to .svelte-kit/build
, but I might have an older version.
Also, should we add staticAssetsDirectory
with a value of static
?
See
"staticAssetsDirectory": "public", |
I've updated this PR to set SvelteKit's
However, SvelteKit is currently not really compatible with the Netlify CLI and we're considering a PR to change that which would require functions to be written under |
Hi @benmccann, are all SvelteKit's expected to be using the adapter? I wonder if a more flexible approach would be to use a Netlify Build Plugin? For example, the Next.js plugin writes to an internal functions directory: You can open an issue with your requirements on the CLI/Build repo and we can discuss more if that makes sense. |
The SvelteKit adapter is being updated to write to the internal functions directory. It would be nice if that directory were documented though. Right now we're having to rely on undocumented behavior and insights gleamed off how Gatsby and other tools work I'm not that familiar with Netlify and the build plugins and whether they might be helpful, but I think it'd be hard to use SvelteKit without any adapter |
Hi @benmccann, after looking at sveltejs/kit#2113, I believe we can move forward with this to unblock.
Very good point @benmccann, and we're planning to document those. We've been using them internally so we can iterate on the API.
Thanks, that make sense. I think we can move forward with the PR. |
I don't know why it says
static
. That's an input directory where static assets are located and we shouldn't put output there