https and ssl integration on the backend, frontend and started integration of logistics app as a separate frontend
This commit is contained in:
@ -1,7 +1,18 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
],
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '');
|
||||
|
||||
return {
|
||||
plugins: [
|
||||
react(),
|
||||
],
|
||||
server: {
|
||||
https: {
|
||||
key: env.VITE_SSL_KEY_PATH,
|
||||
cert: env.VITE_SSL_CERT_PATH,
|
||||
}
|
||||
}}
|
||||
});
|
Reference in New Issue
Block a user