File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import { createHtmlPlugin } from "vite-plugin-html";
1111import { codecovVitePlugin } from "@codecov/vite-plugin" ;
1212import { sentryVitePlugin } from "@sentry/vite-plugin" ;
1313import react from "@vitejs/plugin-react" ;
14- import basicSsl from "@vitejs/plugin-basic-ssl" ;
1514import { realpathSync } from "fs" ;
15+ import * as fs from "node:fs" ;
1616
1717// https://vitejs.dev/config/
1818export default defineConfig ( ( { mode, packageType } ) => {
@@ -24,7 +24,6 @@ export default defineConfig(({ mode, packageType }) => {
2424 process . env . VITE_PACKAGE = packageType ?? "full" ;
2525 const plugins = [
2626 react ( ) ,
27- basicSsl ( ) ,
2827 svgrPlugin ( {
2928 svgrOptions : {
3029 // This enables ref forwarding on SVGR components, which is needed, for
@@ -83,7 +82,11 @@ export default defineConfig(({ mode, packageType }) => {
8382 return {
8483 server : {
8584 port : 3000 ,
86- fs : { allow } ,
85+ fs : { allow } ,
86+ https : {
87+ key : fs . readFileSync ( './backend/dev_tls_m.localhost.key' ) ,
88+ cert : fs . readFileSync ( './backend/dev_tls_m.localhost.crt' ) ,
89+ } ,
8790 } ,
8891 build : {
8992 sourcemap : true ,
You can’t perform that action at this time.
0 commit comments