test deploying svelte app to deno.com/deploy
ref: https://github.com/pluvial/svelte-adapter-deno?tab=readme-ov-file#usage
Run commands:
# npx sv create .
deno run -A npm:sv create .
deno add npm:svelte-adapter-deno --dev
Edit svelte.config.js:
// replace this line
// import adapter from '@sveltejs/adapter-auto';
// with this line
import adapter from 'svelte-adapter-deno';
then run commands:
deno task build
deployctl deploy --entrypoint=./build/index.js
additional commands:
# install deployctl
deno install -gArf jsr:@deno/deployctl
write a workflow file .github/workflows/ci.yml.
edit setting in https://dash.deno.com/projects/{project}/settings
-> Git Integration -> Deploy from GitHub Actions
or else will be permission denied.