Skip to content

fix(examples): upgrade sveltekit-ssr-zip to SvelteKit 3 - #935

Open
bnusunny wants to merge 3 commits into
mainfrom
fix/sveltekit-3
Open

bnusunny wants to merge 3 commits into
mainfrom
fix/sveltekit-3

Conversation

@bnusunny

Copy link
Copy Markdown
Contributor

Upgrades examples/sveltekit-ssr-zip to SvelteKit 3 and migrates its config so it still builds. Replaces #923.

#923 (Dependabot) bumps @sveltejs/kit 2.70.1 → 3.2.0 and @sveltejs/adapter-node 5 → 6, but on its own the example no longer builds: vite build stops with config_file_unsupported because SvelteKit 3 no longer reads svelte.config.js. CI doesn't build this example, so #923 shows green.

This PR keeps Dependabot's bump commit and adds one commit on top:

  • Delete svelte.config.js; pass the same settings to the plugin in vite.config.ts: sveltekit({ preprocess: vitePreprocess(), adapter: adapter() }).
  • tsconfig.json extends $app/tsconfig (SvelteKit 3 no longer generates .svelte-kit/tsconfig.json).
  • README: the setup step points at vite.config.ts instead of svelte.config.js.

Testing

Not checked: sam build/deploy and a live invoke. SvelteKit 3.2 expects TypeScript ^6 while the example pins ^5; nothing failed, so that bump is left for later.

dependabot Bot and others added 2 commits November 13, 2026 01:24
Bumps the security group with 1 update in the /examples/sveltekit-ssr-zip/app directory: [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit).


Updates `@sveltejs/kit` from 2.70.1 to 3.2.0
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@3.2.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 3.2.0
  dependency-type: direct:development
  dependency-group: security
...

Signed-off-by: dependabot[bot] <support@github.com>
SvelteKit 3 no longer reads svelte.config.js and fails the build with
config_file_unsupported. Pass the adapter and preprocessor to the
sveltekit() Vite plugin instead, and extend $app/tsconfig as svelte-kit
sync now requires.
@bnusunny
bnusunny requested a review from a team as a code owner November 16, 2026 21:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant