-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Describe the bug
adaptor-static no longer generate endpoint like sitemap.xml.ts and robots.txt.ts as a static file, which it did previously(I don't have an exact version number for that unfortunately. I have seen that behavior roughly 6 months ago?)
Reproduction
https://github.com/winston0410/adaptor-static-repo
Based on the log below, seems like a SSR bundle is generated, even though adaptor-static is used. It is generating a SSR bundle.
Logs
vite v2.9.14 building for production...
✓ 13 modules transformed.
.svelte-kit/output/client/_app/manifest.json 1.19 KiB
.svelte-kit/output/client/_app/immutable/layout.svelte-1d07092a.js 0.53 KiB / gzip: 0.35 KiB
.svelte-kit/output/client/_app/immutable/error.svelte-cc54f29b.js 1.56 KiB / gzip: 0.74 KiB
.svelte-kit/output/client/_app/immutable/start-4bc1a949.js 23.14 KiB / gzip: 8.75 KiB
.svelte-kit/output/client/_app/immutable/pages/index.svelte-9d84caa9.js 0.80 KiB / gzip: 0.47 KiB
.svelte-kit/output/client/_app/immutable/chunks/index-bf1ed64f.js 6.85 KiB / gzip: 2.80 KiB
vite v2.9.14 building SSR bundle for production...
✓ 12 modules transformed.
Generated an empty chunk: "hooks"
.svelte-kit/output/server/manifest.json 1.26 KiB
.svelte-kit/output/server/index.js 73.97 KiB
.svelte-kit/output/server/entries/endpoints/robots.txt.ts.js 0.15 KiB
.svelte-kit/output/server/entries/fallbacks/layout.svelte.js 0.25 KiB
.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.73 KiB
.svelte-kit/output/server/entries/pages/index.svelte.js 0.33 KiB
.svelte-kit/output/server/immutable/chunks/index-b9efae8a.js 2.60 KiB
.svelte-kit/output/server/immutable/chunks/hooks-d259abab.js 0.00 KiB
Run npm run preview to preview your production build locally.
(node:17487) ExperimentalWarning: buffer.Blob is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
> Using @sveltejs/adapter-static
Wrote site to "build"
✔ doneSystem Info
System:
OS: macOS 11.4
CPU: (8) arm64 Apple M1
Memory: 164.91 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.15.1 - /opt/homebrew/opt/node@16/bin/node
Yarn: 1.22.17 - /opt/homebrew/bin/yarn
npm: 8.11.0 - /opt/homebrew/opt/node@16/bin/npm
Browsers:
Brave Browser: 103.1.40.113
Safari: 14.1.1
npmPackages:
@sveltejs/adapter-cloudflare: ^1.0.0-next.25 => 1.0.0-next.26
@sveltejs/adapter-static: next => 1.0.0-next.35
@sveltejs/kit: 1.0.0-next.357 => 1.0.0-next.357
@sveltejs/vite-plugin-svelte: ^1.0.0-next.41 => 1.0.0-next.49
svelte: ^3.44.0 => 3.49.0Severity
serious, but I can work around it
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels