Skip to content

Commit

Permalink
Switch to Cloudflare adapter in Svelte config
Browse files Browse the repository at this point in the history
Switched the Svelte adapter from 'adapter-auto' to 'adapter-cloudflare'. Added respective package in package.json and updated package-lock.json.
This change has been introduced to prepare the Svelte app to be deployed within a Cloudflare Workers environment, enabling serverless function capabilities.
  • Loading branch information
MatejMa2ur committed Nov 30, 2023
1 parent 475e50f commit 990f791
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
43 changes: 43 additions & 0 deletions Web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-cloudflare": "^2.3.3",
"@sveltejs/kit": "^1.27.4",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
Expand Down
2 changes: 1 addition & 1 deletion Web/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-cloudflare';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
Expand Down

0 comments on commit 990f791

Please sign in to comment.