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 add npm:svelte-adapter-deno --dev
replace import adapter from '@sveltejs/adapter-auto';
with
import adapter from 'svelte-adapter-deno';
in svelte.config.js
.
then run commands:
deno run 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.