docs: fix preview docs deployments - #15975
Conversation
|
| ## Explicit environment variables | ||
|
|
||
| As of SvelteKit 2.62, you can opt into _explicit_ environment variables, in which case you instead import environment variables from these modules: | ||
| After following the setup below, they can be imported via the following modules: |
There was a problem hiding this comment.
There's probably a better way to introduce $app/env explicit environment variables
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
|
Requires merging sveltejs/svelte.dev#2031 to get the deployment working |
|
Gah, still failing — needs |
|
Alright I've added the ambient type and restored the deleted pages. We can probably remove them when svelte.dev uses the version-3 branch as the default and add redirects to the server handle hook there |
We need to update the explicit environment variables docs to solve the preview error deployment. It's looking for
$app/environmenttypes but they've been removed when we mergedmainin https://github.com/sveltejs/svelte.dev/actions/runs/27088756592/job/79948243995#step:10:25Please 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:.Edits