Repository navigation
feat: custom server entry points during development #16464
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
Merged
Merged
Changes from all commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
277389a
get it working
teemingc 9d8040f
fix remote import
teemingc e97c6a1
replace ssrLoadModule and serialise assets path correctly
teemingc 0c78c0e
ensure it works with vitest
teemingc 0c19777
doc fix
teemingc ceaebc8
Merge branch 'version-3' into feat-server-entrypoint
teemingc 3ff979b
import only after server has started
teemingc f8245f3
Update index.js
teemingc 5e0e3f0
Merge branch 'version-3' into feat-server-entrypoint
teemingc 0ba765a
prettier
teemingc 9e0a2a9
fix
teemingc 8fc3473
format
teemingc fd47988
standardise handler
teemingc 4a3bae7
Merge branch 'version-3' into feat-server-entrypoint
teemingc 930dfd5
resolve to ssr entry correctly
teemingc 68e7364
format
teemingc a4c64f9
doc fix
teemingc bcc1de7
Merge branch 'version-3' into feat-server-entrypoint
teemingc 88fb3fb
fix trace facade not exporting fetch handler
teemingc dd97b18
remove Vite fs prefix just before reading
teemingc 35ac374
avoid collision
teemingc 7391962
Update 99-writing-adapters.md
teemingc 0bd9813
invalidate dev manifest data
teemingc a2a5446
Merge branch 'version-3' into feat-server-entrypoint
teemingc 42eac09
format
teemingc 9b751f6
windows
teemingc b403f30
revert
teemingc f2f90c0
format
teemingc 14ee428
this doesn't belong here
teemingc a4f48bc
format
teemingc 483fff6
base path in manifest is not needed yet
teemingc 90ecc99
replace ssrLoadModule
teemingc a5beefd
remove comment
teemingc eb70e15
Merge branch 'runnable-dev-environment' into feat-server-entrypoint
teemingc f203fc6
Fix: The `change` file watcher dereferences `manifest_data.nodes` bef…
vercel[bot] b8bd2bd
regenerate types
teemingc 8da087a
Merge branch 'runnable-dev-environment' into feat-server-entrypoint
teemingc b29f339
missed this
teemingc 79b8d5f
Update packages/kit/src/exports/vite/dev/server.js
teemingc da976b8
add again
teemingc fc5d32f
Update packages/kit/src/exports/vite/dev/index.js
teemingc 9bfd903
Update packages/kit/src/exports/vite/dev/index.js
teemingc e2cafbe
Merge branch 'version-3' into runnable-dev-environment
Rich-Harris 1e548d7
merge runnable-dev-environment
Rich-Harris 28a0e73
DRY
Rich-Harris 77883dc
Update packages/kit/src/exports/vite/dev/index.js
teemingc 0dfd7e2
merge runnable-dev-environment
Rich-Harris 676a9a7
merge version-3. sure hope i did this right! github: your stacked PR …
Rich-Harris f109f0f
Merge branch 'feat-server-entrypoint' of https://github.com/sveltejs/…
teemingc 391049c
remove merge conflict markers
teemingc dbc8def
remove manifest data virtual module
teemingc 71416d3
didnt get them all the first try
teemingc f2e57ad
invalidate ssr manifest module
teemingc 42e0ef8
no longer true
teemingc 7db1c35
vercel bot fix
teemingc 49c0556
only reload for $app/manifest
teemingc 36e2c21
not needed
teemingc c97be4d
clean up
teemingc 87d28df
not needed anymore
teemingc a0828b5
log environment errors
teemingc 9108ed4
Update utils.js
teemingc ba380f7
forward server errors
teemingc 7ab3973
add types
teemingc ea16240
Merge branch 'version-3' into feat-server-entrypoint
teemingc b677c2e
Merge branch 'version-3' into feat-server-entrypoint
teemingc 8649cf7
initial rework
teemingc 704ef2d
make it work in prerender and preview
teemingc c282ab9
Update 99-writing-adapters.md
teemingc 19a9246
update adapters
teemingc c4e988e
fix this needs to be an anonymous arrow function
teemingc 9452c0f
add debug condition
teemingc 65a276c
Merge branch 'version-3' into feat-server-entrypoint
teemingc d23caf0
set the right this context
teemingc 497ac15
use bind
teemingc 681b579
missed a spot
teemingc d6cb109
fine we'll keep supporting emulate
teemingc f7bf2ae
log error
teemingc d7246bb
oopsie
teemingc 3c506e9
Update index.js
teemingc b6c1196
Update 99-writing-adapters.md
teemingc 26c78ec
try fix docs
teemingc a55dfa4
format
teemingc 9d7d821
disable vite error overlay during tests
teemingc db3e67b
fix docs
teemingc cba1b7b
format again? what's wrong with prettier
teemingc c5b8c2a
chore: autofix lint
github-actions[bot] 20698cd
try fix docs
teemingc a726414
order imports
teemingc 9fe12dd
Merge branch 'feat-server-entrypoint' of https://github.com/sveltejs/…
teemingc e5d69b2
split out change
teemingc 2023400
split out
teemingc e8a1129
split out
teemingc 0329d9e
ditto
teemingc 03b5ff4
split out
teemingc d99d5fd
revert
teemingc e4bee61
add function name to docs snippet
teemingc 793c618
oops
teemingc 7ab6d0a
revert
teemingc 7504403
revert
teemingc d435959
remove one step of indirection
teemingc 05c41b2
split ssr manifest refactoring changes
teemingc 4c67f0c
split out
teemingc cddfef0
unused
teemingc e21944d
fixes
teemingc 4984432
add tests
teemingc d3ac896
Delete utils.js
teemingc 7622a82
typo
teemingc 040296d
keep state.read in preview
teemingc cd62efb
unused type
teemingc c1756ad
revert
teemingc 42de023
clean up and fixes
teemingc c1aa38f
this goes in here
teemingc 942d110
Merge branch 'version-3' into feat-server-entrypoint
teemingc 1313b63
separate into its own pr
teemingc 8e47611
make server.init optional
teemingc 9ba8540
Merge branch 'version-3' into feat-server-entrypoint
teemingc c3d7734
Update documentation/docs/25-build-and-deploy/99-writing-adapters.md
teemingc 7d70597
Update documentation/docs/25-build-and-deploy/99-writing-adapters.md
teemingc b8f5830
Update documentation/docs/25-build-and-deploy/99-writing-adapters.md
teemingc df67547
Update documentation/docs/25-build-and-deploy/99-writing-adapters.md
teemingc 76e27c3
Merge branch 'version-3' into feat-server-entrypoint
teemingc cf92069
feat: simplify custom entrypoint stuff (#16560)
Rich-Harris bcf3ffa
Merge branch 'version-3' into feat-server-entrypoint
teemingc 673ff67
remove
teemingc 6ea7c35
unused
teemingc fe45851
revert
teemingc 5948330
Fix: In `vite preview`, the custom/default handler's one-time setup f…
vercel[bot] cb408b7
Fix: The custom/default `SSRHandler` setup function `init_server` is …
vercel[bot] cf9539c
Update documentation/docs/25-build-and-deploy/99-writing-adapters.md
Rich-Harris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@sveltejs/kit': minor | ||
| --- | ||
|
|
||
| feat: allow adapters to provide a `customHandler` that handles requests to the server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.