-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use config.kit.paths.base for static assets #4448
Conversation
🦋 Changeset detectedLatest commit: 069a17a The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
cda0501
to
a04508a
Compare
Hi @hmnd, thank you for the quick action, I can confirm that the assets directory now includes the base path (path = In the
|
a04508a
to
18ce99d
Compare
@asendia No problem. Wanted to fix this for the workers adapter, and then saw your issue pop up too. Thanks for catching that! Should be fixed now. |
Thanks for this PR, perfect timing 👌 I gave it a try and the first deploy failed with...
I'm not sure whether it failed due to a misconfiguration on my part while running the forked version of SvelteKit, or the actual changes in this PR. I got it fixed by adding |
@asendia @arggh FYI in case you need this to work asap like me, I've published the fork at @icewolf/[email protected] while this is awaiting review. |
Hi, @hmnd! Can you add the fix to |
18ce99d
to
a0d6518
Compare
@hmnd not sure if I'm doing something funky, but for some reason files in |
a0d6518
to
6aea7c5
Compare
6aea7c5
to
10c627b
Compare
d449b20
to
238c07c
Compare
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.
It looks like this missed a place where Netlify Edge and adapter-node
need to be updated. I'll take a stab at that
4a9bde3
to
4755346
Compare
4755346
to
03db876
Compare
I missed that the PR description said I created a new issue for the better fix of mounting the directories under a different path at runtime rather than changing the location on disk: #7242 Right now, This doesn't touch |
17e6a24
to
03db876
Compare
Prefixes appDir with config.kit.paths.base for adapter-(cloudflare, cloudflare-workers, netlify). Didn't touch node, as there's some discussion around how that should be handled differently in #3726. Would be great if @asendia and @tv42 could test the adapters for their respective issues, since I've never used those platforms with sveltekit.
I'm aware it would be better if the base path was handled outside of SvelteKit instead of creating nested folders like this, but (at least for workers sites), I can't think of a better alternative.
fixes #4442, fixes #2843, fixes #3726
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpx changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0