feat: use cloudflare adapter for main site (#10)

This commit is contained in:
Luka 2024-11-30 12:42:41 +01:00 committed by GitHub
parent 385e36f1e4
commit 70f3bec275
Signed by: DevComp
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 4 deletions

Binary file not shown.

View file

@ -12,7 +12,7 @@
"format": "prettier --write ." "format": "prettier --write ."
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-vercel": "^5.4.6", "@sveltejs/adapter-cloudflare": "^4.8.0",
"@sveltejs/kit": "^2.7.3", "@sveltejs/kit": "^2.7.3",
"@sveltejs/vite-plugin-svelte": "^4.0.0", "@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
@ -33,7 +33,8 @@
"tailwindcss": "^3.4.14", "tailwindcss": "^3.4.14",
"typescript": "^5.6.3", "typescript": "^5.6.3",
"typescript-eslint": "^8.12.2", "typescript-eslint": "^8.12.2",
"vite": "^5.4.10" "vite": "^5.4.10",
"wrangler": "^3.91.0"
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
import { mdsvex } from "mdsvex" import adapter from "@sveltejs/adapter-cloudflare"
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"
import adapter from "@sveltejs/adapter-vercel" import { mdsvex } from "mdsvex"
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {

6
website/wrangler.toml Normal file
View file

@ -0,0 +1,6 @@
name = "pesde"
compatibility_date = "2024-11-30"
pages_build_output_dir = ".svelte-kit/cloudflare"
[vars]
PUBLIC_REGISTRY_URL = "https://registry.pesde.daimond113.com/v0/"