mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-18 20:39:36 +02:00
chore: Update svelte.config.js to use adapter based on environment
This commit is contained in:
parent
007b1c4df8
commit
f1181ec881
1 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,15 @@
|
|||
import adapter from '@sveltejs/adapter-node';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
import adapterNode from '@sveltejs/adapter-node';
|
||||
import adapterVercel from '@sveltejs/adapter-vercel';
|
||||
|
||||
let adapter;
|
||||
if (process.env.VERCEL) {
|
||||
adapter = adapterVercel;
|
||||
} else {
|
||||
adapter = adapterNode;
|
||||
}
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue