feat: switch to Cloudflare Pages

This commit is contained in:
2023-06-12 15:31:47 +02:00
parent fb21015f99
commit fb55126682
4 changed files with 86 additions and 106 deletions

View File

@@ -15,7 +15,7 @@
"lint": "eslint ."
},
"dependencies": {
"@studio-freight/lenis": "^1.0.14",
"@studio-freight/lenis": "^1.0.15",
"classix": "^2.1.32",
"dayjs": "^1.11.8",
"embla-carousel": "^7.1.0",
@@ -29,7 +29,7 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-vercel": "^3.0.1",
"@sveltejs/adapter-cloudflare": "^2.3.0",
"@sveltejs/kit": "^1.20.2",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",

View File

@@ -1,5 +1,5 @@
import preprocess from 'svelte-preprocess'
import adapter from '@sveltejs/adapter-vercel'
import adapter from '@sveltejs/adapter-cloudflare'
import { fileURLToPath } from 'url'
import { dirname } from 'path'
@@ -18,7 +18,10 @@ const config = {
kit: {
adapter: adapter({
runtime: 'edge',
routes: {
include: ['/*'],
exclude: ['<all>']
}
}),
alias: {
$components: 'src/components',