mirror of
https://github.com/Blah-IM/Weblah.git
synced 2025-07-30 00:42:41 +00:00
chore: Add Zeabur configuration
* .node-version has been degraded to v20, since Svelte does not support v22 on Serverless :( * Add Zeabur adapter (only used when ZEABUR=1)
This commit is contained in:
parent
ca380e9ce6
commit
3d88b42d9a
4 changed files with 894 additions and 96 deletions
|
@ -1,4 +1,5 @@
|
|||
import adapter from '@sveltejs/adapter-auto';
|
||||
import zAdapter from '@zeabur/svelte-adapter';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
|
@ -11,7 +12,7 @@ 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: process.env.ZEABUR ? zAdapter() : adapter()
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue