Skip to content

Commit 1ac90ec

Browse files
authored
Merge pull request #2 from appwrite/feat-sveltekit-ssr
Feat: Enable SvelteKit SSR
2 parents fd0426f + 5800b38 commit 1ac90ec

File tree

3 files changed

+244
-10
lines changed

3 files changed

+244
-10
lines changed

sveltekit/starter/package-lock.json

Lines changed: 241 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sveltekit/starter/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@fontsource/fira-mono": "^5.0.0",
1414
"@neoconfetti/svelte": "^2.0.0",
1515
"@sveltejs/adapter-auto": "^3.0.0",
16+
"@sveltejs/adapter-node": "^5.2.9",
1617
"@sveltejs/adapter-static": "^3.0.6",
1718
"@sveltejs/kit": "^2.0.0",
1819
"@sveltejs/vite-plugin-svelte": "^4.0.0",

sveltekit/starter/svelte.config.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
import adapter from '@sveltejs/adapter-static';
1+
import adapter from '@sveltejs/adapter-node';
22

33
/** @type {import('@sveltejs/kit').Config} */
44
const config = {
55
kit: {
66
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
77
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
88
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
9-
adapter: adapter({
10-
// default options are shown. On some platforms
11-
// these options are set automatically — see below
12-
pages: 'build',
13-
assets: 'build',
14-
fallback: undefined,
15-
precompress: false,
16-
strict: false
17-
})
9+
adapter: adapter()
1810
}
1911
};
2012

0 commit comments

Comments
 (0)