{"id":19522190,"url":"https://github.com/captaincodeman/svelte-kit-10008","last_synced_at":"2026-06-15T17:31:22.769Z","repository":{"id":168300633,"uuid":"643991435","full_name":"CaptainCodeman/svelte-kit-10008","owner":"CaptainCodeman","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-26T17:25:54.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-18T17:23:53.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CaptainCodeman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-22T15:19:11.000Z","updated_at":"2023-05-22T15:19:17.000Z","dependencies_parsed_at":"2023-06-14T21:30:23.408Z","dependency_job_id":null,"html_url":"https://github.com/CaptainCodeman/svelte-kit-10008","commit_stats":null,"previous_names":["captaincodeman/svelte-kit-10008"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CaptainCodeman/svelte-kit-10008","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fsvelte-kit-10008","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fsvelte-kit-10008/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fsvelte-kit-10008/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fsvelte-kit-10008/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainCodeman","download_url":"https://codeload.github.com/CaptainCodeman/svelte-kit-10008/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fsvelte-kit-10008/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34374144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T00:37:36.626Z","updated_at":"2026-06-15T17:31:22.746Z","avatar_url":"https://github.com/CaptainCodeman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Example\n\nReproduction for [https://github.com/sveltejs/kit/issues/10008](https://github.com/sveltejs/kit/issues/10008)\n\nRun `pnpm dev`, the expected `PUBLIC_API_KEY: my-personal-key-for-dev-only` appears on all pages.\n\nRun `pnpm build` to compile with the Node adapter, then `pnpm start` to execute with a dynamic `.env` value. Initially the value is correct (`PUBLIC_API_KEY: proper-public-key`), but landing on the pre-rendered page (goto `http://localhost:3000/prerendered` and refresh) switches it to incorrectly use the dev-mode `.env` value for that and all subsequent pages.\n\nThe pre-rendered page has the dev mode `.env` value embedded, effectively changing it to be a static value. This can break the app and risks exposing something that wasn't _intended_ to be made public (despite it being a public variable).\n\n```html\n\u003cscript\u003e\n  {\n    __sveltekit_o5vefy = {\n      base: new URL(\".\", location).pathname.slice(0, -1),\n      env: {\"PUBLIC_API_KEY\":\"my-personal-key-for-dev-only\"}\n    };\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fsvelte-kit-10008","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptaincodeman%2Fsvelte-kit-10008","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fsvelte-kit-10008/lists"}