From ac9372c673d910239f5f8bab21f23b4906b4cb63 Mon Sep 17 00:00:00 2001 From: Vlad Gusev Date: Sat, 20 Apr 2024 00:26:38 +0300 Subject: [PATCH] Use module mount instead of symlink Symlinks are forbidden in CloudFlare Pages --- config.json | 37 +++++++++++++++++++++++++++++++++++++ static/art | 1 - 2 files changed, 37 insertions(+), 1 deletion(-) delete mode 120000 static/art diff --git a/config.json b/config.json index d1b2399..cee395b 100644 --- a/config.json +++ b/config.json @@ -16,6 +16,43 @@ "static" ], + "module": { + "mounts": [ + { + "source": "content", + "target": "content" + }, + { + "source": "static", + "target": "static" + }, + { + "source": "layouts", + "target": "layouts" + }, + { + "source": "data", + "target": "data" + }, + { + "source": "assets", + "target": "assets" + }, + { + "source": "i18n", + "target": "i18n" + }, + { + "source": "archetypes", + "target": "archetypes" + }, + { + "source": "art", + "target": "static/art" + } + ] + }, + "markup": { "goldmark": { "extensions": { diff --git a/static/art b/static/art deleted file mode 120000 index 290502c..0000000 --- a/static/art +++ /dev/null @@ -1 +0,0 @@ -../art \ No newline at end of file