From ba96affc304d27c0506d33eba48a6f1a9d2b5767 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 6 Oct 2024 07:29:10 +0200 Subject: [PATCH] docs: add information about Node.JS adapter for SvelteKit --- pages/docs/mod-notes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/docs/mod-notes.md b/pages/docs/mod-notes.md index d037db9..057f290 100644 --- a/pages/docs/mod-notes.md +++ b/pages/docs/mod-notes.md @@ -154,6 +154,8 @@ SvelteKit integration is a mod, that enables SVR.JS to serve SvelteKit applicati The webroot (_wwwroot_ _config.json_ property) serves as a SvelteKit application directory. It's recommended to set the owner of the SvelteKit application directory (around with all the files in it) as the user, on which SVR.JS is running (usually "svrjs"). +The SvelteKit application must have Node.JS adapter (@sveltejs/adapter-node npm package) configured, and a "build" directory in order for the integration to work. You can generate the files in the "build" directory by running `npm run build` on the SvelteKit application. + It's also recommended to forbid the access to ".env" file, ".svelte-kit" and ".git" directories, in case SvelteKit integration mod fails to load. You can set up _nonStandardCodes_ _config.json_ property like this: ```json {