From c265b0ffbd0ce6abf4da1ff5b5bcbdb94ffa379d Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 9 Dec 2024 00:42:46 +0100 Subject: [PATCH] docs: add the recommendation to use configJSON.wwwroot instead of "." for SVR.JS 2.x and 3.x mods --- pages/docs/mods/mod-development-legacy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/mods/mod-development-legacy.md b/pages/docs/mods/mod-development-legacy.md index 23a2c5d..de120d9 100644 --- a/pages/docs/mods/mod-development-legacy.md +++ b/pages/docs/mods/mod-development-legacy.md @@ -48,7 +48,7 @@ These methods are defined inside _Mod.prototype_ object. Both methods return a f The reference to file in the SVR.JS installation directory is `__dirname + "/../../../filename"` (replace `filename` with your desired file name). -Current working directory (`process.cwd()`) is SVR.JS web root. +Current working directory (`process.cwd()`) is SVR.JS web root. It's recommended to use the _configJSON.wwwroot_ property instead though, if targeting SVR.JS 4.2.0 or newer. A typical _index.js_ file for a mod may look like this: