{"id":19571446,"url":"https://github.com/torstendittmann/svelte-adapter-static-digitalocean","last_synced_at":"2025-07-28T16:07:29.501Z","repository":{"id":41300119,"uuid":"474325094","full_name":"TorstenDittmann/svelte-adapter-static-digitalocean","owner":"TorstenDittmann","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-09T14:15:57.000Z","size":108,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T17:51:23.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/svelte-adapter-static-digitalocean","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TorstenDittmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-03-26T11:20:07.000Z","updated_at":"2025-04-09T14:15:41.000Z","dependencies_parsed_at":"2024-04-15T12:56:16.590Z","dependency_job_id":"6b6a416a-a29e-493c-85ff-5b0dadcc9880","html_url":"https://github.com/TorstenDittmann/svelte-adapter-static-digitalocean","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"fdef602f44c32d5027f12e84f71197bb0a98a990"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/TorstenDittmann/svelte-adapter-static-digitalocean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TorstenDittmann%2Fsvelte-adapter-static-digitalocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TorstenDittmann%2Fsvelte-adapter-static-digitalocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TorstenDittmann%2Fsvelte-adapter-static-digitalocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TorstenDittmann%2Fsvelte-adapter-static-digitalocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TorstenDittmann","download_url":"https://codeload.github.com/TorstenDittmann/svelte-adapter-static-digitalocean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TorstenDittmann%2Fsvelte-adapter-static-digitalocean/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262598166,"owners_count":23334669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11T06:18:55.427Z","updated_at":"2025-06-29T13:04:45.161Z","avatar_url":"https://github.com/TorstenDittmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-adapter-static-digitalocean\n\nAdapter for Svelte apps that extends the official [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/master/packages/adapter-static) and does the following to support [DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform) out-of-the-box.\n\nThe adapter will also look for an [App Spec](https://docs.digitalocean.com/products/app-platform/concepts/app-spec/) file and adapt the configuration accordingly.\n\nIf `static_sites` is provided in the specifications, the adapter will use the first entry. If you want to use a different one, you will need to provide a `name` value to the adapter configuration. It will use the value of `error_document` for the fallback.\n\nIf no specification is found or provided, the `fallback` falls back to `404.html` - which is the default for DigitalOcean App Platform.\n\n## Configuration\n\nrun `npm install svelte-adapter-static-digitalocean`.\n\nThen add the adapter to your `svelte.config.js`:\n\n```js\nimport adapter from 'svelte-adapter-static-digitalocean';\n\nexport default {\n    kit: {\n        ...\n        adapter: adapter({\n            // default options are shown\n            pages: 'build',\n            assets: 'build',\n            fallback: '404.html',\n            precompress: false,\n            strict: true,\n            spec: '.do/spec.yaml',\n            name: ''\n        })\n    }\n};\n```\n\n...and add the prerender option to your root layout (`src/routes/+layout.js|ts`):\n\n```js\n// This can be false if you're using a fallback (i.e. SPA mode)\nexport const prerender = true;\n```\n\n\u003e Please check out the [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/master/packages/adapter-static) readme for more options.\n\n## Issues / Bugs\nPlease report issues in the [here](https://github.com/torstendittmann/svelte-adapter-static-digitalocean/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorstendittmann%2Fsvelte-adapter-static-digitalocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorstendittmann%2Fsvelte-adapter-static-digitalocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorstendittmann%2Fsvelte-adapter-static-digitalocean/lists"}