feat: update E2E testing configuration to use ssl

This commit is contained in:
ramvignesh-b
2026-04-16 04:26:29 +05:30
parent cc8e3e4e4e
commit b08d505a5a
13 changed files with 249 additions and 36 deletions
+10
View File
@@ -1,3 +1,5 @@
import fs from "node:fs";
import path from "node:path";
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig, loadEnv } from "vite";
@@ -11,6 +13,14 @@ export default defineConfig(({ mode }) => {
server: {
port: Number(env.FRONTEND_PORT),
host: env.FRONTEND_DOMAIN,
https: {
key: fs.readFileSync(
path.resolve(__dirname, "../certs/localhost-key.pem"),
),
cert: fs.readFileSync(
path.resolve(__dirname, "../certs/localhost.pem"),
),
},
},
};
});