api.svelte.dev

Api.svelte.dev

The API worker source for https://api.svelte.dev

Svelte API Worker

Live: https://api.svelte.dev

Install

$ pnpm install

Development

We use Wrangler for its local development server. This is effectively a proxy-service that (nearly) replicates the Cloudflare Worker runtime.

Anyone can develop this repository locally. Simply copy the wrangler.example.toml file as your own wrangler.toml file and insert the appropriate values. These values may (and should) be your own personal account values. This way any changes you make will not affect the live, production server and/or data.

$ cp wrangler.example.toml wrangler.toml

Build

$ pnpm run build

Deploy

Important: For the relevent Svelte maintainers only~!

Deployment is handled by GitHub Actions, and is triggered automatically via tag events. Tag & release this as if it were any other npm module – but don't publish it to the registry :wink:

# Format:
#   npm version <major|minor|patch> && git push origin master --tags
# Example:
$ npm version patch && git push origin master --tags

Top categories

Loading Svelte Themes