diff --git a/.changeset/young-dolls-exist.md b/.changeset/young-dolls-exist.md new file mode 100644 index 000000000000..2a13d0b8cc46 --- /dev/null +++ b/.changeset/young-dolls-exist.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/adapter-auto": minor +--- + +feat: add support for Google Cloud Run diff --git a/documentation/docs/25-build-and-deploy/30-adapter-auto.md b/documentation/docs/25-build-and-deploy/30-adapter-auto.md index 78f3ab5225f4..9c94b40e5cc2 100644 --- a/documentation/docs/25-build-and-deploy/30-adapter-auto.md +++ b/documentation/docs/25-build-and-deploy/30-adapter-auto.md @@ -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. diff --git a/packages/adapter-auto/adapters.js b/packages/adapter-auto/adapters.js index 07a996ff7168..040876900506 100644 --- a/packages/adapter-auto/adapters.js +++ b/packages/adapter-auto/adapters.js @@ -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' } ];