-
-
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
Netlify Adapter 404 assets when kit.paths.base is defined #4442
Labels
bug
Something isn't working
p1-important
SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
paths.base
bugs relating to `config.kit.paths.base`
Milestone
Comments
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Mar 24, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - add base path to dest for builder.writeStatic, builder.writeClient, builder.writePrerendered - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Mar 24, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
5 tasks
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Mar 25, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Mar 25, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Apr 9, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Apr 27, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Apr 27, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
benmccann
added
the
p1-important
SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
label
Jul 19, 2022
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Jul 22, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Jul 22, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Jul 22, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Sep 2, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Sep 2, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Sep 2, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Sep 16, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.prefix and builder.getAppPrefixDirectory() - adapter-cloudflare*: use manifest.prefix instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Sep 29, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.appPath and builder.getAppPath() - adapter-cloudflare*: use manifest.appPath instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
hmnd
added a commit
to hmnd/svelte-kit
that referenced
this issue
Sep 30, 2022
fixes sveltejs#4442, fixes sveltejs#2843 - add manifest.appPath and builder.getAppPath() - adapter-cloudflare*: use manifest.appPath instead of manifest.appDir - adapter-netlify: use prefixed appDir for cache headers - adapter-vercel: use prefixed appDir for routes.json - adapter-cloudflare, adapter-cloudflare-workers, adapter-netlify: write static assets to "$dest/$base"
dummdidumm
pushed a commit
that referenced
this issue
Oct 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
p1-important
SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
paths.base
bugs relating to `config.kit.paths.base`
Describe the bug
As titled, when
kit.paths.base
is defined, the asset requests (js, css, etc) get 404 from/[kit.paths.base]/_app
. The actual assets are still accessible from/_app
.In local env,
npm run preview
can correctly load assets from/[kit.paths.base]/_app
.Reproduction
I have modified the
svelte.config.js
in this stackblitz link. Runnpm run build
and you will get the 404 error.Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
I execute this workaround script in postbuild, assuming
kit.paths.base = 'test'
:The text was updated successfully, but these errors were encountered: