Skip to content

Commit

Permalink
build: use vercel adapter in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed Mar 14, 2024
1 parent 2c090ef commit ee3b7f3
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.1.1",
"@sveltejs/adapter-vercel": "^5.1.1",
"@sveltejs/kit": "^2.5.4",
"@sveltejs/vite-plugin-svelte": "2.2.0",
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
Expand Down
6 changes: 4 additions & 2 deletions packages/docs/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import mdsvexConfig from './mdsvex.config.js';
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-vercel';
import preprocess from 'svelte-preprocess';
import { mdsvex } from 'mdsvex';

Expand All @@ -22,7 +22,9 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: adapter({
runtime: 'nodejs20.x'
})
}
};

Expand Down
Loading

0 comments on commit ee3b7f3

Please sign in to comment.