Skip to content

Commit

Permalink
feat: support Google Cloud in adapter-auto (#12015)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSchlangen committed Mar 27, 2024
1 parent 4b999c8 commit e934685
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-dolls-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sveltejs/adapter-auto": minor
---

feat: add support for Google Cloud Run
1 change: 1 addition & 0 deletions documentation/docs/25-build-and-deploy/30-adapter-auto.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ When you create a new SvelteKit project with `npm create svelte@latest`, it inst
- [`@sveltejs/adapter-vercel`](adapter-vercel) for [Vercel](https://vercel.com/)
- [`svelte-adapter-azure-swa`](https://github.com/geoffrich/svelte-adapter-azure-swa) for [Azure Static Web Apps](https://docs.microsoft.com/en-us/azure/static-web-apps/)
- [`svelte-kit-sst`](https://github.com/sst/sst/tree/master/packages/svelte-kit-sst) for [AWS via SST](https://docs.sst.dev/start/svelte)
- [`@sveltejs/adapter-node`](https://kit.svelte.dev/docs/adapter-node) for [Google Cloud Run](https://cloud.google.com/run)

It's recommended to install the appropriate adapter to your `devDependencies` once you've settled on a target environment, since this will add the adapter to your lockfile and slightly improve install times on CI.

Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-auto/adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ export const adapters = [
test: () => !!process.env.SST,
module: 'svelte-kit-sst',
version: '2'
},
{
name: 'Google Cloud Run',
test: () => !!process.env.GCP_BUILDPACKS,
module: '@sveltejs/adapter-node',
version: '5'
}
];

0 comments on commit e934685

Please sign in to comment.