chore: add Cloudflare adapter and switch to auto adapter in Svelte configuration

This commit is contained in:
Rotimi Best
2026-03-15 22:36:37 +01:00
parent 0a9c53b758
commit 8947b5cb5a
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -85,6 +85,7 @@
"@eslint/compat": "^1.4.0",
"@eslint/js": "^9.36.0",
"@rollup/plugin-replace": "^6.0.2",
"@sveltejs/adapter-cloudflare": "^7.2.8",
"@sveltejs/kit": "^2.5.27",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tailwindcss/typography": "^0.5.9",
+3 -3
View File
@@ -1,7 +1,7 @@
import 'dotenv/config';
import adapterNode from '@sveltejs/adapter-node';
import adapterVercel from '@sveltejs/adapter-vercel';
// import adapterNode from '@sveltejs/adapter-node';
import adapterAuto from '@sveltejs/adapter-auto';
import path from 'path';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
@@ -95,7 +95,7 @@ const config = {
// for more information about preprocessors
preprocess: [vitePreprocess({})],
kit: {
adapter: useNodeAdapter ? adapterNode() : adapterVercel(),
adapter: adapterAuto(),
alias: {
$lib: path.resolve('./src/lib'),
$features: path.resolve('./src/lib/features'),