open-index/open-npm huggingface dataset:
npm package: @0mn1/svelte-adapter-appengine
Description: Adapter for Svelte that integrates with Google Cloud Appengine 
Author: Jonas Jongejan
Latest version: 0.6.0

# svelte-adapter-appengine

Utilize the [Google Cloud App Engine](https://cloud.google.com/appengine) infrastructure to host SvelteKit content.

[![npm](https://img.shields.io/npm/v/svelte-adapter-appengine?color=green)](https://www.npmjs.com/package/svelte-adapter-appengine)
[![Tests](https://github.com/halfdanj/svelte-adapter-appengine/actions/workflows/test.yml/badge.svg)](https://github.com/halfdanj/svelte-adapter-appengine/actions/workflows/test.yml)

## Setup

In your standard SvelteKit project:

- `npm install --save-dev svelte-adapter-appengine`
- add adapter to `svelte.config.js`:

```diff
+import appengine from "svelte-adapter-appengine";

/** @type {import('@sveltejs/kit').Config} */
export default {
  kit: {
+   adapter: appengine(),
    target: "#svelte",
  },
};
```

- `npm run build`.
- Application can then be deployed by running `gcloud app deploy --project <CLOUD_PROJECT_ID> .appengine_build_output/app.yaml`. (learn more about gcloud utility [here](https://cloud.google.com/sdk/gcloud))

## Adapter Output

The SSR part of SvelteKit is hosted on App Engine in a nodejs runtime. It's running using [polka](https://github.com/lukeed/polka) mimicking [@sveltejs/adapter-node
](https://github.com/sveltejs/kit/tree/master/packages/adapter-node).

Static files are served directly from Cloud Storage without going through the nodejs webserver. Routes for all the static assets are automatically generated in `app.yaml` by the adapter.

## Example

An examplee app can be accessed on [https://svelte-demo-329602.uc.r.appspot.com/](https://svelte-demo-329602.uc.r.appspot.com/), this is the default demo app from sveltekit deployed with the default settings.