feat: move basePath and prerenderedRoutes to the public SSRManifest api - #16827
feat: move basePath and prerenderedRoutes to the public SSRManifest api#16827ottomated wants to merge 1 commit into
basePath and prerenderedRoutes to the public SSRManifest api#16827Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/ba0491d64dbb952e6f1086e655bdaa42875daeddOpen in |
🦋 Changeset detectedLatest commit: ba0491d The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 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 |
|
Quoting myself from #16464 (comment): I think we should be moving away from adding more stuff to the public manifest, with an eventual goal of getting rid of it entirely. Thoughts?
|
I like it, but we'd need to add manifest as a public property of server (is that what you're thinking?) Then all of the private properties of SSRManifest could be moved to no longer be internal, to allow adapters to type-check on them. |
Might be more about adding the right APIs to the |
adapter-node and adapter-cloudflare access manifest properties: mimeTypes, basePath, appPath, prerenderedRoutes, and assets |
Cleans up some private API access for adapter-node and adapter-cloudflare. This also will allow adapter-cloudflare to import the manifest only, instead of having to add additional exports to it, helpful for @cloudflare/vite-plugin stuff.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.