From d7056e96e1c1a5b9b5b21b3b52c4930bb595fef5 Mon Sep 17 00:00:00 2001 From: Yue JIN Date: Sun, 25 Feb 2024 22:50:35 +0800 Subject: [PATCH] fix: set session password in ci --- nuxt.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 4b9e2bc..28c78a8 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -66,7 +66,9 @@ export default defineNuxtConfig({ }, session: { name: 'nuxt-session', - password: '', + password: process.env.CI + ? 'your-super-long-secret-for-session-encryption' + : '', }, }, })