diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78092b814eda3b88b4994b16d502bb1c3c2c1a36..ca500c09a9b016e6179a66b51d1adbd4576233eb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,16 +35,16 @@ editorconfig:
   stage: deploy
   image: ubuntu:focal
   dependencies: [build] # artifact dependency
-  script:
-    - apt-get update && apt-get install -y lftp ca-certificates
-    - lftp -e "set dns:order 'inet inet6';
-      mirror -R out/ public/ ; quit"
-      -u $FTP_USER,$FTP_PASS $FTP_HOST
   except:
     - tags
 
 ftp-prod:
   extends: .ftp
+  script:
+    - apt-get update && apt-get install -y lftp ca-certificates
+    - lftp -e "set dns:order 'inet inet6';
+      mirror -R out/ htdocs/ ; quit"
+      -u $FTP_USER,$FTP_PASS $FTP_HOST
   variables:
     FTP_HOST: "$FTP_HOST_PROD"
     FTP_USER: "$FTP_USER_PROD"
@@ -57,6 +57,11 @@ ftp-prod:
 
 ftp-staging:
   extends: .ftp
+  script:
+    - apt-get update && apt-get install -y lftp ca-certificates
+    - lftp -e "set dns:order 'inet inet6';
+      mirror -R out/ public/ ; quit"
+      -u $FTP_USER,$FTP_PASS $FTP_HOST
   variables:
     FTP_HOST: "$FTP_HOST_STAGING"
     FTP_USER: "$FTP_USER_STAGING"
diff --git a/next.config.js b/next.config.js
index 529dbe078038fbb12322449c24c3d7d9bf0a21bf..151a826077bca05b50a7a2f2535b25c9e370dd39 100644
--- a/next.config.js
+++ b/next.config.js
@@ -28,5 +28,8 @@ module.exports = withPlugins(
 			},
 		],
 	],
-	{ reactStrictMode: true },
+	{
+		reactStrictMode: true,
+		trailingSlash: true,
+	},
 );