Skip to content

Commit

Permalink
add ssl for react dev
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinated92 committed Dec 19, 2024
1 parent 81519a3 commit 5b839a0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions share/dashboard_react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions share/dashboard_react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@babel/core": "^7.25.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-basic-ssl": "^1.2.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.2",
Expand Down
4 changes: 3 additions & 1 deletion share/dashboard_react/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import viteCompression from 'vite-plugin-compression'
import basicSSL from '@vitejs/plugin-basic-ssl'

// https://vitejs.dev/config/
export default defineConfig({
server: {
https: true,
proxy: {
'/api': {
target: 'https://repman.marie-dev.svc.cloud18:10005/',
secure: false
}
}
},
plugins: [react(), viteCompression({ algorithm: 'gzip' })],
plugins: [react(), viteCompression({ algorithm: 'gzip' }), basicSSL()],
css: {
preprocessorOptions: {
scss: {
Expand Down

0 comments on commit 5b839a0

Please sign in to comment.